-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCaddyfile
More file actions
19 lines (17 loc) · 753 Bytes
/
Copy pathCaddyfile
File metadata and controls
19 lines (17 loc) · 753 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Caddy uses the APP_DOMAIN environment variable from docker-compose.prod.yml.
# Example: APP_DOMAIN=libero.example.com
{$APP_DOMAIN} {
# Brotli-like zstd plus gzip gives small responses with low CPU overhead.
encode zstd gzip
# Baseline browser hardening. Secrets remain server-side; these headers help
# reduce accidental content sniffing and clickjacking in the customer portal.
header {
X-Content-Type-Options "nosniff"
X-Frame-Options "DENY"
Referrer-Policy "strict-origin-when-cross-origin"
Permissions-Policy "geolocation=(), microphone=(), camera=()"
}
# Caddy terminates TLS and forwards plain HTTP over the private Docker
# network to the FastAPI container. The web service is not exposed publicly.
reverse_proxy web:8000
}