seg-app / Caddyfile
mahmed10's picture
Upload 5 files
d4a80b6 verified
raw
history blame contribute delete
846 Bytes
coneimage.com, www.coneimage.com {
encode zstd gzip
reverse_proxy web:3000
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"
Permissions-Policy "camera=(), microphone=(), geolocation=()"
}
@assets path *.js *.css *.ico *.png *.jpg *.jpeg *.webp *.svg *.gif *.woff *.woff2
header @assets Cache-Control "public, max-age=31536000, immutable"
}
api.coneimage.com {
encode zstd gzip
# FastAPI upstream inside the compose network
reverse_proxy api:8000
header {
Strict-Transport-Security "max-age=31536000; includeSubDomains; preload"
X-Content-Type-Options "nosniff"
Referrer-Policy "no-referrer"
}
}