Browse Source

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

Erick Tryzelaar 10 years ago
parent
commit
a4ae3d396c
1 changed files with 2 additions and 0 deletions
  1. 2 0
      tools/load-balancer/etc/nginx.conf

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

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