Explorar o código

[load-balancer] Pass the Host and X-Forwarded-For headers from nginx to Hue

Erick Tryzelaar %!s(int64=10) %!d(string=hai) anos
pai
achega
a4ae3d3
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      tools/load-balancer/etc/nginx.conf

+ 2 - 0
tools/load-balancer/etc/nginx.conf

@@ -30,6 +30,8 @@ http {
 
         location / {
             proxy_pass http://hue;
+            proxy_set_header Host $http_host;
+            proxy_set_header X-Forwarded-For $remote_addr;
         }
 
         location /static/ {