Update caddy.txt

This commit is contained in:
Alexandre
2021-07-28 22:43:08 +02:00
committed by GitHub
parent 3989bb8abf
commit 88f244e2fb

View File

@@ -25,15 +25,22 @@
handle {
header X-Frame-Options "SAMEORIGIN"
header X-Content-Type-Options nosniff
header X-Robots-Tag none
header -X-Frame-Options
header Accept-Encoding ""
Connection $connection_upgrade;
Upgrade $http_upgrade;
Host $http_host;
X-Forwarded-For $proxy_add_x_forwarded_for;
X-Forwarded-Proto $scheme;
X-NginX-Proxy true;
X-Real-IP $remote_addr
header @static Cache-Control max-age=31536000
root * /app/dist
try_files {path}.html {path} /
file_server
}
handle_path /* {
header X-Frame-Options "SAMEORIGIN"
reverse_proxy http://127.0.0.1:9000
}
}