Files
leox-gpon-monitoring/Caddyfile
Mateusz Gruszczyński 8b280f578e config caddy
2026-01-02 23:26:56 +01:00

36 lines
699 B
Caddyfile

:80 {
reverse_proxy gpon-monitoring-app:{$LISTEN_PORT}
header {
-Server
-X-Powered-By
-Via
-Date
-Content-Disposition
defer
}
@static {
path *.css *.js
}
handle @static {
header Cache-Control "public, max-age=3600, immutable"
-ETag
-Content-Disposition
-Last-Modified
defer
reverse_proxy gpon-monitoring-app:{$LISTEN_PORT}
}
@api {
path /api/*
}
handle @api {
header Cache-Control "no-cache, no-store, must-revalidate"
reverse_proxy gpon-monitoring-app:{$LISTEN_PORT}
defer
}
encode gzip zstd
}