mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-05-27 10:54:14 +02:00
Fix connections with ssl
https://github.com/alexbelgium/hassio-addons/issues/1877#issuecomment-3010832728
This commit is contained in:
@@ -13,6 +13,9 @@ server {
|
|||||||
proxy_send_timeout 30m;
|
proxy_send_timeout 30m;
|
||||||
proxy_read_timeout 30m;
|
proxy_read_timeout 30m;
|
||||||
proxy_set_header Origin "";
|
proxy_set_header Origin "";
|
||||||
|
# Ensure the backend knows the correct host
|
||||||
|
proxy_set_header Host $http_host;
|
||||||
|
proxy_set_header X-Forwarded-Host $http_host;
|
||||||
}
|
}
|
||||||
|
|
||||||
location /api/websocket/ {
|
location /api/websocket/ {
|
||||||
@@ -24,6 +27,9 @@ server {
|
|||||||
proxy_connect_timeout 30m;
|
proxy_connect_timeout 30m;
|
||||||
proxy_send_timeout 30m;
|
proxy_send_timeout 30m;
|
||||||
proxy_read_timeout 30m;
|
proxy_read_timeout 30m;
|
||||||
|
# Ensure the backend knows the correct host
|
||||||
|
proxy_set_header Host $http_host;
|
||||||
|
proxy_set_header X-Forwarded-Host $http_host;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user