浏览代码

Merge branch 'feature-authen-and-cheat' of ssh://git.mooctest.com:1022/crowd-2019/crowd-test-service-front into feature-authen-and-cheat

sunjh 6 年之前
父节点
当前提交
0da17ea5a5
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      tool4deploy/conf.d/nginx.conf

+ 3 - 0
tool4deploy/conf.d/nginx.conf

@@ -11,6 +11,9 @@ server {
         }
 
         location /api {
+            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_pass http://backend:8080;
         }