24 lines
617 B
Caddyfile
24 lines
617 B
Caddyfile
# Caddyfile — Public reverse proxy for the Zopu web + API.
|
|
#
|
|
# The web frontend (port 5173) is served at the root, Better Auth is proxied
|
|
# first-party under /api/auth, and Flue is mounted under /api/flue.
|
|
|
|
zopu.cheaptricks.puter.wtf {
|
|
bind 135.181.82.179 2a01:4f9:c013:4a64::1
|
|
encode zstd gzip
|
|
|
|
handle /api/auth/* {
|
|
reverse_proxy https://befitting-dalmatian-161.convex.site {
|
|
header_up Host befitting-dalmatian-161.convex.site
|
|
header_up X-Forwarded-Host {host}
|
|
header_up X-Forwarded-Proto {scheme}
|
|
}
|
|
}
|
|
|
|
handle_path /api/flue/* {
|
|
reverse_proxy 127.0.0.1:3585
|
|
}
|
|
|
|
reverse_proxy 127.0.0.1:5173
|
|
}
|