compose.yaml passes ${PORT:-8080} to the app, its healthcheck and the
standalone Caddy (APP_PORT in the Caddyfile). Docs note that the panel's
domain must target the same port.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013FYo6JSV1fDU1fm3LU77iF
10 lines
332 B
Caddyfile
10 lines
332 B
Caddyfile
# Automatic HTTPS for $DOMAIN (Let's Encrypt / ZeroSSL). HTTPS is required:
|
|
# WebCrypto, service workers and push only work in a secure context.
|
|
# Security headers (CSP etc.) are set by the app itself.
|
|
{$DOMAIN} {
|
|
encode zstd gzip
|
|
reverse_proxy app:{$APP_PORT:8080} {
|
|
# Server-Sent Events: don't buffer
|
|
flush_interval -1
|
|
}
|
|
}
|