From acc272258614caee3ab097f9b1714a99b3cbae6f Mon Sep 17 00:00:00 2001 From: Aiden McClelland Date: Thu, 4 Mar 2021 12:07:50 -0700 Subject: [PATCH] appmgr: add proxy headers for lan services --- appmgr/src/nginx-standard.conf.template | 3 +++ 1 file changed, 3 insertions(+) diff --git a/appmgr/src/nginx-standard.conf.template b/appmgr/src/nginx-standard.conf.template index d623d353d..cba40a4d3 100644 --- a/appmgr/src/nginx-standard.conf.template +++ b/appmgr/src/nginx-standard.conf.template @@ -6,6 +6,9 @@ server {{ location / {{ proxy_pass http://{app_ip}:{internal_port}/; proxy_set_header Host $host; + proxy_set_header X-Real-IP $remote_addr; + proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; + proxy_set_header X-Forwarded-Proto $scheme; }} }} server {{