mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-03 22:34:11 +02:00
Update ingress.conf
This commit is contained in:
@@ -20,9 +20,6 @@ location /switch-space/ {
|
|||||||
add_header Access-Control-Allow-Origin *;
|
add_header Access-Control-Allow-Origin *;
|
||||||
proxy_set_header Accept-Encoding "";
|
proxy_set_header Accept-Encoding "";
|
||||||
|
|
||||||
absolute_redirect off;
|
|
||||||
sub_filter_once off;
|
|
||||||
sub_filter_types *;
|
|
||||||
# avoid mixed content
|
# avoid mixed content
|
||||||
# Ensure work with both http and https (code by @met67)
|
# Ensure work with both http and https (code by @met67)
|
||||||
if ($http_referer ~* "^(http[s]?)://([^:]+):(\d*)(/.*)$") {
|
if ($http_referer ~* "^(http[s]?)://([^:]+):(\d*)(/.*)$") {
|
||||||
@@ -44,11 +41,11 @@ location /switch-space/ {
|
|||||||
proxy_set_header Host $x_host$x_port; # Required for addresses without ports
|
proxy_set_header Host $x_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;
|
absolute_redirect off;
|
||||||
sub_filter_types *;
|
sub_filter_once off;
|
||||||
sub_filter https://$x_host/ https://$x_host$x_port/;
|
sub_filter_types *;
|
||||||
sub_filter http://$x_host/ http://$x_host$x_port/;
|
sub_filter https://$x_host/ https://$x_host$x_port/;
|
||||||
|
sub_filter http://$x_host/ http://$x_host$x_port/;
|
||||||
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 "http://127.0.0.1:8080/" "/";
|
sub_filter "http://127.0.0.1:8080/" "/";
|
||||||
@@ -92,6 +89,7 @@ location /switch-space/ {
|
|||||||
proxy_set_header Host $x_host$x_port; # Required for addresses without ports
|
proxy_set_header Host $x_host$x_port; # Required for addresses without ports
|
||||||
|
|
||||||
# Correct url without port when using https
|
# Correct url without port when using https
|
||||||
|
absolute_redirect off;
|
||||||
sub_filter_once off;
|
sub_filter_once off;
|
||||||
sub_filter_types *;
|
sub_filter_types *;
|
||||||
sub_filter https://$x_host/ https://$x_host$x_port/;
|
sub_filter https://$x_host/ https://$x_host$x_port/;
|
||||||
|
|||||||
Reference in New Issue
Block a user