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