# Reverse proxy: WS/API traffic to `api`, everything else to `frontend`. # Point CADDY_DOMAIN at a real hostname (and remove `auto_https off` + the `:80` binding # below) once this is deployed somewhere with a resolvable domain for automatic TLS. { auto_https off } :80 { handle /ws* { reverse_proxy api:3000 } handle /api/* { reverse_proxy api:3000 } handle { reverse_proxy frontend:3001 } }