# Caddyfile — Public reverse proxy for the Zopu web + API.
#
# The web frontend (port 5173) is served at the root, and the Flue agent/API
# (port 3585) is mounted under /api so the browser talks same-origin.

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:3585
	}

	reverse_proxy 127.0.0.1:5173
}
