fixed caddyfile

This commit is contained in:
Arseni
2026-02-25 23:49:18 +03:00
parent ebde599c38
commit 70359916b9
2 changed files with 25 additions and 1 deletions

View File

@@ -72,6 +72,30 @@
respond "forbidden" 403
}
########################################
# API docs (ReDoc)
########################################
handle /docs {
redir * /docs/ 308
}
handle /docs/ {
root * {vars.static_root}/docs
rewrite * /doc.html
file_server
header Cache-Control "no-cache, no-store, must-revalidate"
header Pragma "no-cache"
header Expires "0"
}
handle_path /docs/* {
root * {vars.static_root}/docs
file_server
header Cache-Control "no-cache, no-store, must-revalidate"
header Pragma "no-cache"
header Expires "0"
}
########################################
# Static assets with tailored caching
########################################