Containerfile + compose (app + Caddy with automatic HTTPS), env-driven domain/limits/ports, VAPID key generation that never prints the key. SPEC updated to match the implementation (Node stdlib server, Svelte SPA, revert by event id, backup contents, push options). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013FYo6JSV1fDU1fm3LU77iF
10 lines
320 B
Caddyfile
10 lines
320 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:8080 {
|
|
# Server-Sent Events: don't buffer
|
|
flush_interval -1
|
|
}
|
|
}
|