http://factory.gen3.ai { # Gen3 API routes handle /api/gen3/* { reverse_proxy localhost:3010 } handle /api/telegram/* { reverse_proxy localhost:3010 } handle /api/health { reverse_proxy localhost:3010 } handle /sandbox-port/* { reverse_proxy localhost:3010 } # Gen3 API project/deploy routes handle /api/projects/* { reverse_proxy localhost:3010 } handle /api/deployments/* { reverse_proxy localhost:3010 } @runtime path_regexp runtime ^/runtime/([0-9]+)(.*)$ handle @runtime { uri strip_prefix /runtime/{re.runtime.1} reverse_proxy localhost:{re.runtime.1} } handle /llm-proxy/* { uri strip_prefix /llm-proxy reverse_proxy localhost:18789 } @agentapi path /api/git/* /api/conversations/*/events/* handle @agentapi { reverse_proxy localhost:3000 { header_up Host {host} } } handle { reverse_proxy localhost:3000 { header_up Host {host} header_up X-Real-IP {remote_host} } } }