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