mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 18:31:02 +01:00
Update sub_filter
This commit is contained in:
@@ -19,7 +19,7 @@ server {
|
||||
|
||||
# Allow frames
|
||||
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 *;
|
||||
proxy_set_header Accept-Encoding "";
|
||||
|
||||
@@ -41,7 +41,7 @@ server {
|
||||
proxy_set_header X-Port $x_port;
|
||||
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
|
||||
sub_filter_once off;
|
||||
@@ -50,7 +50,7 @@ server {
|
||||
sub_filter http://$x_host/ http://$x_host$x_port/;
|
||||
|
||||
# Rewrite url
|
||||
sub_filter "/static" "%%ingress_entry%%/static";
|
||||
sub_filter "/media" "%%ingress_entry%%/media";
|
||||
sub_filter "/static/" "%%ingress_entry%%/static/";
|
||||
sub_filter "/media/" "%%ingress_entry%%/media/";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user