36 lines
699 B
Caddyfile
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
|
|
}
|