Browse Source

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

sunjh 5 years ago
parent
commit
0da17ea5a5
1 changed files with 3 additions and 0 deletions
  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;
         }