Skip to content

Commit 7ff639a

Browse files
committed
perf: 机器学习模块配合代理地址
1 parent 7e6732e commit 7ff639a

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

.env.production

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# 机器学习模块接口地址
2-
VITE_MACHINELEARNING_URL="http://8.135.49.240:8081"
2+
# VITE_MACHINELEARNING_URL="http://8.135.49.240:8081"

.env.staging

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# 机器学习模块接口地址,公司测试环境
2-
VITE_MACHINELEARNING_URL="http://172.16.1.192:8080"
2+
# VITE_MACHINELEARNING_URL="http://172.16.1.192:8080"

default.conf

+4
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ server {
88
try_files $uri $uri/ /index.html =404;
99
}
1010

11+
location /ml/ {
12+
proxy_pass http://172.16.1.192:8080/;
13+
}
14+
1115
error_page 500 502 503 504 /50x.html;
1216
location = /50x.html {
1317
root html;

0 commit comments

Comments
 (0)