Update caddy.txt

This commit is contained in:
Alexandre
2021-07-28 22:13:02 +02:00
committed by GitHub
parent 12e7a64ba3
commit 62f01a243c

View File

@@ -1,5 +1,5 @@
:81 { :8099 {
@proxied path /api/* /docs /openapi.json @proxied path /api/* /docs /openapi.json
@static { @static {
@@ -19,14 +19,12 @@
handle @proxied { handle @proxied {
uri strip_suffix / uri strip_suffix /
header X-Frame-Options "SAMEORIGIN"
reverse_proxy http://127.0.0.1:9000 reverse_proxy http://127.0.0.1:9000
} }
handle { handle {
header @static Cache-Control max-age=31536000 header @static Cache-Control max-age=31536000
root * /app/dist root * /app/dist
header X-Frame-Options "SAMEORIGIN"
try_files {path}.html {path} / try_files {path}.html {path} /
file_server file_server
} }