Caddyfile Multi-Domain Production TLS Reverse Proxy
# Production Caddy Multi-Domain Proxy
{
email admin@example.com
admin off
}
app.example.com {
encode zstd gzip
header {
Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"
X-Content-Type-Options "nosniff"
X-Frame-Options "DENY"
Referrer-Policy "strict-origin-when-cross-origin"
}
reverse_proxy web-service:3000 {
health_uri /health
health_interval 10s
health_timeout 3s
}
}
api.example.com {
encode zstd gzip
reverse_proxy api-service:8080
}