mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-28 11:24:04 +02:00
Update caddy.txt
This commit is contained in:
@@ -22,6 +22,7 @@
|
|||||||
header X-Forwarded-For $proxy_add_x_forwarded_for
|
header X-Forwarded-For $proxy_add_x_forwarded_for
|
||||||
header X-Forwarded-Proto $scheme
|
header X-Forwarded-Proto $scheme
|
||||||
header X-NginX-Proxy true
|
header X-NginX-Proxy true
|
||||||
|
header X-External-Path $http_x_ingress_path
|
||||||
header X-Real-IP $remote_addr
|
header X-Real-IP $remote_addr
|
||||||
header @static Cache-Control max-age=31536000
|
header @static Cache-Control max-age=31536000
|
||||||
root * /app/data/recipes/
|
root * /app/data/recipes/
|
||||||
@@ -41,6 +42,7 @@
|
|||||||
header X-Forwarded-Proto $scheme
|
header X-Forwarded-Proto $scheme
|
||||||
header X-NginX-Proxy true
|
header X-NginX-Proxy true
|
||||||
header X-Real-IP $remote_addr
|
header X-Real-IP $remote_addr
|
||||||
|
header X-External-Path $http_x_ingress_path;
|
||||||
uri strip_suffix /
|
uri strip_suffix /
|
||||||
reverse_proxy http://127.0.0.1:9000
|
reverse_proxy http://127.0.0.1:9000
|
||||||
}
|
}
|
||||||
@@ -58,6 +60,7 @@
|
|||||||
header X-Forwarded-Proto $scheme
|
header X-Forwarded-Proto $scheme
|
||||||
header X-NginX-Proxy true
|
header X-NginX-Proxy true
|
||||||
header X-Real-IP $remote_addr
|
header X-Real-IP $remote_addr
|
||||||
|
X-External-Path $http_x_ingress_path;
|
||||||
header @static Cache-Control max-age=31536000
|
header @static Cache-Control max-age=31536000
|
||||||
root * /app/dist
|
root * /app/dist
|
||||||
try_files {path}.html {path} /
|
try_files {path}.html {path} /
|
||||||
|
|||||||
Reference in New Issue
Block a user