Use X-Forwarded-For in nginx example (#1534)
it supplies HASS with the users real ip address
This commit is contained in:
parent
5b36739751
commit
b60975fda8
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue