Jelajahi Sumber

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 tahun lalu
induk
melakukan
0da17ea5a5
1 mengubah file dengan 3 tambahan dan 0 penghapusan
  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;
         }