浏览代码

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

Erick Tryzelaar 10 年之前
父节点
当前提交
a4ae3d3
共有 1 个文件被更改,包括 2 次插入0 次删除
  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/ {