ソースを参照

fix: proxy kaifain adding solution page to proginn-frontend project

Acathur 4 年 前
コミット
a97cb87b8b
1 ファイル変更9 行追加1 行削除
  1. 9 1
      config/nginx/template/proginn.nginx.conf

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

@@ -180,7 +180,7 @@ server {
     index index.php index.html index.htm;
 
     rewrite ^/job/(.*)$ https://{{domain}}.test-job.proginn.com/$1 permanent;
-    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 / {
         if (!-e $request_filename) {
@@ -254,6 +254,14 @@ server {
         proxy_pass http://127.0.0.1:3000;
         proxy_set_header Host {{domain}}.test.proginn.com;
     }
+    location ^~ /kaifain/add {
+        proxy_pass http://127.0.0.1:3000;
+        proxy_set_header Host $host;
+    }
+    location ^~ /kaifain/preview {
+        proxy_pass http://127.0.0.1:3000;
+        proxy_set_header Host $host;
+    }
     location ^~ /setting/check/old_mobile {
         proxy_pass http://127.0.0.1:3000;
         proxy_set_header Host {{domain}}.test.proginn.com;