config caddy
This commit is contained in:
12
Caddyfile
12
Caddyfile
@@ -5,8 +5,6 @@
|
||||
-Server
|
||||
-X-Powered-By
|
||||
-Via
|
||||
-Date
|
||||
-Content-Disposition
|
||||
defer
|
||||
}
|
||||
|
||||
@@ -14,11 +12,13 @@
|
||||
path *.css *.js
|
||||
}
|
||||
handle @static {
|
||||
header Cache-Control "public, max-age=3600, immutable"
|
||||
header {
|
||||
Cache-Control "public, max-age=31536000, immutable"
|
||||
-ETag
|
||||
-Content-Disposition
|
||||
-Last-Modified
|
||||
defer
|
||||
}
|
||||
reverse_proxy gpon-monitoring-app:{$LISTEN_PORT}
|
||||
}
|
||||
|
||||
@@ -26,10 +26,12 @@
|
||||
path /api/*
|
||||
}
|
||||
handle @api {
|
||||
header Cache-Control "no-cache, no-store, must-revalidate"
|
||||
reverse_proxy gpon-monitoring-app:{$LISTEN_PORT}
|
||||
header {
|
||||
Cache-Control "no-cache, no-store, must-revalidate"
|
||||
defer
|
||||
}
|
||||
reverse_proxy gpon-monitoring-app:{$LISTEN_PORT}
|
||||
}
|
||||
|
||||
encode gzip zstd
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user