3 Commits

Author SHA1 Message Date
coward
cb7d1adc95 🎨修复
All checks were successful
continuous-integration/drone/tag Build is passing
2024-08-20 16:45:35 +08:00
coward
88b23fce6a 🐛修复
All checks were successful
continuous-integration/drone/tag Build is passing
2024-08-20 14:46:03 +08:00
coward
5f14e07921 :fix:测试修复
All checks were successful
continuous-integration/drone/tag Build is passing
2024-08-20 14:30:10 +08:00
2 changed files with 14 additions and 12 deletions

View File

@@ -2,7 +2,7 @@
VITE_PUBLIC_PATH = '/'
# 是否启用MOCK
VITE_USE_MOCK = true
VITE_USE_MOCK = false
# base api
VITE_BASE_API = '/api'

View File

@@ -8,17 +8,19 @@ server {
# 前端打包好的dist目录文件
root /data/;
location / {
try_files $uri $uri/ /index.html;
}
# 若新增后端路由前缀注意在此处添加(|新增)
location ~* ^/(api) {
client_max_body_size 1000m;
proxy_pass http://wireguard-srv:6687;
# proxy_connect_timeout 15s;
# proxy_send_timeout 15s;
# proxy_read_timeout 15s;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto http;
location ^~ /api/ {
proxy_pass http://wireguard-srv:6687;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header REMOTE-HOST $remote_addr;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header X-Forwarded-Proto $scheme;
}
}