Files

14 lines
574 B
Caddyfile

# Only for a standalone deploy (own VPS, own port 80/443). On a shared host
# running multiple projects, this service instead gets a site block appended
# to the host's own /etc/caddy/Caddyfile, proxying to 127.0.0.1:18090 (see
# docker-compose.yml) — do not run this file there, it would conflict with
# the host Caddy already bound to 80/443.
{$DOMAIN:localhost} {
encode gzip
# web frontend joins in Phase 1 and takes over everything except /api/*;
# for now there is no frontend, so all traffic goes straight to the API.
reverse_proxy backend:3000
}