deploy(caddy): reverse-proxy zopu chat + API behind zopu.cheaptricks.puter.wtf

This commit is contained in:
-Puter
2026-07-26 01:41:50 +05:30
parent d4d5620c18
commit 3bfa9ac65e

View File

@@ -1,26 +1,15 @@
# Caddyfile — Minimal reverse proxy for the Zopu agent service. # Caddyfile — Public reverse proxy for the Zopu chat + API.
# #
# This is OPTIONAL. The agent service does not need to be publicly exposed # The web frontend (port 5174) is served at the root, and the agent/API
# for the execution plane to function. Use Caddy only when an HTTP endpoint # (port 3590) is mounted under /api so the browser talks same-origin.
# is genuinely needed (e.g., a webhook ingress from Convex site functions).
#
# In the default single-node deployment, the agent listens on localhost:3583
# and is reachable over Tailscale. Install Caddy only if you need TLS
# termination or a public ingress point.
#
# --- Private/Tailscale deployment (recommended) ---
#
# Listen only on the Tailscale interface. Replace the hostname with your
# Tailscale machine name or IP.
#
# http://zopu-runtime.tail-xxxx.ts.net {
# reverse_proxy localhost:3583
# }
#
# --- Public deployment with automatic TLS (only if needed) ---
#
# agent.example.invalid {
# reverse_proxy localhost:3583
# }
# Default: do not ship an active Caddyfile. The file is documentation. zopu.cheaptricks.puter.wtf {
bind 135.181.82.179 2a01:4f9:c013:4a64::1
encode zstd gzip
handle_path /api/* {
reverse_proxy 127.0.0.1:3590
}
reverse_proxy 127.0.0.1:5174
}