Browse Source

配置文件

renmy 8 months ago
parent
commit
7119424514
2 changed files with 5 additions and 5 deletions
  1. 1 1
      .env.production
  2. 4 4
      default.conf

+ 1 - 1
.env.production

@@ -2,7 +2,7 @@
 ENV = 'production'
 
 # base api
-VUE_APP_BASE_API = "http://192.168.3.251:8080/api"
+VUE_APP_BASE_API = ""
 VUE_APP_WS = 'ws://192.168.3.251:8080/ws/'
 # VUE_APP_BASE_API = 'http://zk.li-ai.com.cn:8090/api'
 # VUE_APP_WS = 'ws://zk.li-ai.com.cn:8090/ws'

+ 4 - 4
default.conf

@@ -19,10 +19,10 @@ server {
         index  start.html index.html;
     }
     
-    # location /api {
-    #     proxy_read_timeout 300;
-    #     proxy_pass   http://192.168.3.177:8080;
-    # }
+    location /api {
+        proxy_read_timeout 300;
+        proxy_pass   http://192.168.3.251:8080;
+    }
 
     # location /ws {
     #     proxy_read_timeout 300;