Use X-Forwarded-For in nginx example (#1534)

it supplies HASS with the users real ip address
This commit is contained in:
hexa- 2016-12-03 23:58:44 +01:00 committed by Fabian Affolter
parent 5b36739751
commit b60975fda8

View File

@ -124,6 +124,7 @@ http {
proxy_set_header Host $host;
proxy_redirect http:// https://;
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 $connection_upgrade;
}