mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-03 04:28:45 +02:00
Update sub_filter
This commit is contained in:
@@ -19,7 +19,7 @@ server {
|
|||||||
|
|
||||||
# Allow frames
|
# Allow frames
|
||||||
proxy_hide_header "Content-Security-Policy";
|
proxy_hide_header "Content-Security-Policy";
|
||||||
add_header X-Frame-Options SAMEORIGIN;
|
add_header X-Frame-Options SAMEORIGIN; # Required for ingress frame
|
||||||
add_header Access-Control-Allow-Origin *;
|
add_header Access-Control-Allow-Origin *;
|
||||||
proxy_set_header Accept-Encoding "";
|
proxy_set_header Accept-Encoding "";
|
||||||
|
|
||||||
@@ -41,7 +41,7 @@ server {
|
|||||||
proxy_set_header X-Port $x_port;
|
proxy_set_header X-Port $x_port;
|
||||||
proxy_set_header X-Forwarded-Proto $x_scheme;
|
proxy_set_header X-Forwarded-Proto $x_scheme;
|
||||||
|
|
||||||
proxy_set_header Host $host$x_port; # try $host instead if this doesn't work
|
proxy_set_header Host $host$x_port; # Required for addresses without ports
|
||||||
|
|
||||||
# Correct url without port when using https
|
# Correct url without port when using https
|
||||||
sub_filter_once off;
|
sub_filter_once off;
|
||||||
@@ -50,7 +50,7 @@ server {
|
|||||||
sub_filter http://$x_host/ http://$x_host$x_port/;
|
sub_filter http://$x_host/ http://$x_host$x_port/;
|
||||||
|
|
||||||
# Rewrite url
|
# Rewrite url
|
||||||
sub_filter "/static" "%%ingress_entry%%/static";
|
sub_filter "/static/" "%%ingress_entry%%/static/";
|
||||||
sub_filter "/media" "%%ingress_entry%%/media";
|
sub_filter "/media/" "%%ingress_entry%%/media/";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user