jira/apps/web/caddy/Caddyfile
vickytechkey a4687eaf39
All checks were successful
Deploy Plane Project Tracker / Deploy to cisystem (push) Successful in 6m47s
feat(logging): add comprehensive server logs for frontend actions and backend API requests
2026-11-06 18:00:17 +05:30

40 lines
644 B
Caddyfile

{
servers {
trusted_proxies static private_ranges
}
# order rate_limit before file_server
}
:3000 {
root * /usr/share/caddy/html
# Per-client-IP rate limiting for static asset requests
# rate_limit {
# zone static {
# key {client_ip}
# events 3000
# window 1m
# }
# }
# Security headers (HSTS is set at the TLS terminator)
header {
X-Frame-Options "DENY"
X-Content-Type-Options "nosniff"
X-XSS-Protection "1; mode=block"
}
# SPA fallback
try_files {path} /index.html
file_server
# Access logs
log {
output file /var/log/caddy/web-access.log {
roll_size 20mb
roll_keep 10
}
format json
}
}