ccf 4 vuotta sitten
vanhempi
commit
8afffed3ee
1 muutettua tiedostoa jossa 9 lisäystä ja 2 poistoa
  1. 9 2
      config/nginx/template/proginn.nginx.conf

+ 9 - 2
config/nginx/template/proginn.nginx.conf

@@ -183,8 +183,15 @@ server {
     # rewrite ^/kaifain/(?!(add|preview))$ http://{{domain}}.test-kaifain.proginn.com/$1 permanent;
     # rewrite ^/kaifain/(?!(add|preview))$ http://{{domain}}.test-kaifain.proginn.com/$1 permanent;
 
 
     location ^~ /uapi {
     location ^~ /uapi {
-         proxy_pass http://127.0.0.1:5000;
-         proxy_set_header Host {{domain}}.test.proginn.com;
+        proxy_pass http://127.0.0.1:5000;
+        proxy_set_header Host $host;
+        proxy_set_header X-Request-Id $temp_request_id;
+    }
+
+    location ~ ^/company$ {
+        proxy_pass http://127.0.0.1:3000;
+        proxy_set_header Host $host;
+        proxy_set_header X-Request-Id $temp_request_id;
     }
     }
 
 
     location ^~ /skill {
     location ^~ /skill {