瀏覽代碼

修改nginx

郭超 4 年之前
父節點
當前提交
efd4d8b895
共有 3 個文件被更改,包括 16 次插入0 次删除
  1. 二進制
      src/assets/img/mooctest.png
  2. 8 0
      tool4deploy-test/conf.d/nginx.conf
  3. 8 0
      tool4deploy/conf.d/nginx.conf

二進制
src/assets/img/mooctest.png


+ 8 - 0
tool4deploy-test/conf.d/nginx.conf

@@ -28,6 +28,14 @@ server {
             proxy_send_timeout 1200s;
             proxy_send_timeout 1200s;
         }
         }
 
 
+        location /page {
+            proxy_pass http://crowd_user:8081;
+        }
+
+        location  ~ ^/(js|vendor|css|fonts|images)/.*$ {
+            proxy_pass http://crowd_user:8081;
+        }
+
         #error_page  404              /404.html;
         #error_page  404              /404.html;
 
 
         # redirect server error pages to the static page /50x.html
         # redirect server error pages to the static page /50x.html

+ 8 - 0
tool4deploy/conf.d/nginx.conf

@@ -28,6 +28,14 @@ server {
             proxy_send_timeout 1200s;
             proxy_send_timeout 1200s;
         }
         }
 
 
+        location /page {
+            proxy_pass http://crowd_user:8081;
+        }
+
+        location  ~ ^/(js|vendor|css|fonts|images)/.*$ {
+            proxy_pass http://crowd_user:8081;
+        }
+
         #error_page  404              /404.html;
         #error_page  404              /404.html;
 
 
         # redirect server error pages to the static page /50x.html
         # redirect server error pages to the static page /50x.html