Files
leox-gpon-monitoring/Caddyfile
Mateusz Gruszczyński 67ee078f3d cache control / rate limit
2026-01-02 23:19:52 +01:00

28 lines
548 B
Caddyfile

:80 {
reverse_proxy gpon-monitoring-app:{$LISTEN_PORT}
header {
-Server
-X-Powered-By
-Via
}
@static {
path *.css *.js
}
handle @static {
header Cache-Control "public, max-age=3600, immutable"
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}
}
encode gzip zstd
}