diff --git a/conf/nginx.conf b/conf/nginx.conf index 4aae8e1..59d60dc 100644 --- a/conf/nginx.conf +++ b/conf/nginx.conf @@ -1,4 +1,4 @@ -# see https://github.com/home-assistant/addons/blob/master/nginx_proxy/data/nginx.conf +# see https://github.com/home-assistant/addons/blob/master/nginx_proxy/rootfs/etc/nginx.conf location / { proxy_pass http://localhost:__PORT__; @@ -7,7 +7,8 @@ location / { proxy_http_version 1.1; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "Upgrade"; + proxy_set_header Connection $connection_upgrade; + proxy_set_header X-Forwarded-Host $http_host; # Include SSOWAT user panel. include conf.d/yunohost_panel.conf.inc;