Fix ipv6 issue with Nginx not redirecting to ipv4 instance of Hass (#9550)

In the Nginx config rather than specifying localhost:8123 use 127.0.0.1:8123 so this will ensure incoming IPv6 requests get redirected to Hass on IPv4. "localhost:8123" means Nginx will try to connect to Hass using the same protocol that came in - and Hass doesn't do dual stack at present
This commit is contained in:
Barrysv 2019-06-05 03:31:20 +08:00 committed by Franck Nijhof
parent 267f8ca0f5
commit 4c112c6652

View File

@ -145,7 +145,7 @@ server {
proxy_buffering off;
location / {
proxy_pass http://localhost:8123;
proxy_pass http://127.0.0.1:8123;
proxy_set_header Host $host;
proxy_redirect http:// https://;
proxy_http_version 1.1;