From b60975fda84eb7d1f2d586fd45371630b8c75161 Mon Sep 17 00:00:00 2001 From: hexa- Date: Sat, 3 Dec 2016 23:58:44 +0100 Subject: [PATCH] Use X-Forwarded-For in nginx example (#1534) it supplies HASS with the users real ip address --- source/_ecosystem/nginx.markdown | 1 + 1 file changed, 1 insertion(+) diff --git a/source/_ecosystem/nginx.markdown b/source/_ecosystem/nginx.markdown index 9aa1e44ad93..8d657a50031 100644 --- a/source/_ecosystem/nginx.markdown +++ b/source/_ecosystem/nginx.markdown @@ -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; }