feat: env update
This commit is contained in:
parent
6f162a4285
commit
ff5bb2a2ec
|
@ -4,7 +4,7 @@ ENV = 'production'
|
||||||
# base api url
|
# base api url
|
||||||
# VITE_BASE_API_URL = 'https://nest-api.buqiyuan.site'
|
# VITE_BASE_API_URL = 'https://nest-api.buqiyuan.site'
|
||||||
# VITE_BASE_API_URL = 'http://123.249.107.55'
|
# VITE_BASE_API_URL = 'http://123.249.107.55'
|
||||||
VITE_BASE_API_URL = 'http://123.249.107.55'
|
VITE_BASE_API_URL = 'http://144.123.43.138:3001'
|
||||||
|
|
||||||
# 公共基础路径, 所有资源的路径都将据此配置重写。
|
# 公共基础路径, 所有资源的路径都将据此配置重写。
|
||||||
VITE_BASE_URL = /api
|
VITE_BASE_URL = /api
|
||||||
|
|
|
@ -34,6 +34,7 @@ http {
|
||||||
|
|
||||||
server {
|
server {
|
||||||
listen 3001;
|
listen 3001;
|
||||||
|
server_name 144.123.43.138;
|
||||||
absolute_redirect off; #取消绝对路径的重定向
|
absolute_redirect off; #取消绝对路径的重定向
|
||||||
sendfile on;
|
sendfile on;
|
||||||
default_type application/octet-stream;
|
default_type application/octet-stream;
|
||||||
|
@ -60,7 +61,7 @@ http {
|
||||||
|
|
||||||
|
|
||||||
# 后端服务
|
# 后端服务
|
||||||
location ^~ /api/ {
|
location /api/ {
|
||||||
proxy_pass http://huaxin-admin-server:8001/api/; # 转发规则
|
proxy_pass http://huaxin-admin-server:8001/api/; # 转发规则
|
||||||
proxy_set_header Host $proxy_host; # 修改转发请求头,让目标应用可以受到真实的请求
|
proxy_set_header Host $proxy_host; # 修改转发请求头,让目标应用可以受到真实的请求
|
||||||
proxy_set_header X-Real-IP $remote_addr;
|
proxy_set_header X-Real-IP $remote_addr;
|
||||||
|
@ -68,7 +69,7 @@ http {
|
||||||
}
|
}
|
||||||
|
|
||||||
# websocket服务
|
# websocket服务
|
||||||
location ^~ /ws-api/ {
|
location /ws-api/ {
|
||||||
proxy_pass http://huaxin-admin-server:8002/ws-api/;
|
proxy_pass http://huaxin-admin-server:8002/ws-api/;
|
||||||
proxy_read_timeout 300s;
|
proxy_read_timeout 300s;
|
||||||
proxy_send_timeout 300s;
|
proxy_send_timeout 300s;
|
||||||
|
|
Loading…
Reference in New Issue