Browse Source

更新 'default.conf'

yoko 1 year ago
parent
commit
0327e73cfc
1 changed files with 9 additions and 0 deletions
  1. 9 0
      default.conf

+ 9 - 0
default.conf

@@ -18,7 +18,16 @@ server {
         try_files $uri $uri/ /index.html;
         index  start.html index.html;
     }
+    
+    location /api {
+        proxy_read_timeout 300;
+        proxy_pass   http://172.16.121.248:8080;
+    }
 
+    location /ws {
+        proxy_read_timeout 300;
+        proxy_pass   http://172.16.121.248:8080/ws;
+    }
     # proxy the PHP scripts to Apache listening on 127.0.0.1:80
     
     # location /api {