mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-30 03:06:06 +02:00
Update ingress.conf
This commit is contained in:
@@ -12,6 +12,8 @@ server {
|
|||||||
proxy_set_header Upgrade $http_upgrade;
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
proxy_set_header Host $http_host; # try $host instead if this doesn't work
|
proxy_set_header Host $http_host; # try $host instead if this doesn't work
|
||||||
proxy_set_header X-Forwarded-Proto $scheme; # http or https
|
proxy_set_header X-Forwarded-Proto $scheme; # http or https
|
||||||
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
|
||||||
# Allow ingress subpath
|
# Allow ingress subpath
|
||||||
proxy_set_header X-Script-Name %%ingress_entry%%;
|
proxy_set_header X-Script-Name %%ingress_entry%%;
|
||||||
@@ -20,13 +22,11 @@ server {
|
|||||||
# Rewrite url
|
# Rewrite url
|
||||||
sub_filter_once off;
|
sub_filter_once off;
|
||||||
sub_filter_types *;
|
sub_filter_types *;
|
||||||
sub_filter "/static/" "%%ingress_entry%%/static/";
|
sub_filter "/static" "%%ingress_entry%%/static";
|
||||||
sub_filter "/media" "%%ingress_entry%%/media";
|
sub_filter "/media" "%%ingress_entry%%/media";
|
||||||
sub_filter "/view" "%%ingress_entry%%/view";
|
#sub_filter "/view" "%%ingress_entry%%/view";
|
||||||
sub_filter "/search" "%%ingress_entry%%/search";
|
#sub_filter "/search" "%%ingress_entry%%/search";
|
||||||
sub_filter "/edit/" "%%ingress_entry%%/edit/";
|
#sub_filter "/edit/" "%%ingress_entry%%/edit/";
|
||||||
#sub_filter "/api/" "%%ingress_entry%%/api/";
|
|
||||||
#sub_filter "%%ingress_entry%%/api/hassio/" "/api/hassio/";
|
|
||||||
|
|
||||||
# Allow frames
|
# Allow frames
|
||||||
proxy_hide_header "Content-Security-Policy";
|
proxy_hide_header "Content-Security-Policy";
|
||||||
|
|||||||
Reference in New Issue
Block a user