# Caddy terminates TLS (certificates are obtained automatically), forwards the bridge API to # loopback, and serves the built phone page from the same origin. Replace the hostname. # This is the shape running on the first droplet deployment (2026-11-21). bridge.example.com { encode zstd gzip header { Strict-Transport-Security "max-age=31536000" X-Content-Type-Options "nosniff" Referrer-Policy "no-referrer" -Server } # Bridge API. Audio uploads are at most about 1 MB at the default 30 s cap. @api path /v1/* /healthz handle @api { request_body { max_size 2MB } reverse_proxy 127.0.0.1:8787 } # The built client (apps/even-client/dist). Static files, no secrets. Serving it from the # bridge's own origin means the page needs no CORS allowance. handle { root * /opt/hermeven/www file_server } }