소스 검색

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 {
         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;
             proxy_pass http://backend:8080;
         }
         }