Browse Source

修改nginx

郭超 4 years ago
parent
commit
efd4d8b895
3 changed files with 16 additions and 0 deletions
  1. BIN
      src/assets/img/mooctest.png
  2. 8 0
      tool4deploy-test/conf.d/nginx.conf
  3. 8 0
      tool4deploy/conf.d/nginx.conf

BIN
src/assets/img/mooctest.png


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

@@ -28,6 +28,14 @@ server {
             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;
 
         # 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;
         }
 
+        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;
 
         # redirect server error pages to the static page /50x.html