mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 10:21:02 +01:00
Update caddy.txt
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user