fixed caddyfile #552
@@ -12,6 +12,7 @@
|
||||
########################################
|
||||
(sendico_site) {
|
||||
vars static_root /usr/share/pweb
|
||||
vars docs_root /usr/share/docs
|
||||
|
||||
encode zstd gzip
|
||||
|
||||
@@ -80,7 +81,7 @@
|
||||
}
|
||||
|
||||
handle /docs/ {
|
||||
root * {vars.static_root}/docs
|
||||
root * {vars.docs_root}
|
||||
rewrite * /doc.html
|
||||
file_server
|
||||
header Cache-Control "no-cache, no-store, must-revalidate"
|
||||
@@ -89,7 +90,7 @@
|
||||
}
|
||||
|
||||
handle_path /docs/* {
|
||||
root * {vars.static_root}/docs
|
||||
root * {vars.docs_root}
|
||||
file_server
|
||||
header Cache-Control "no-cache, no-store, must-revalidate"
|
||||
header Pragma "no-cache"
|
||||
|
||||
Reference in New Issue
Block a user