fix: 优化代码

This commit is contained in:
Daniel
2026-03-08 00:19:29 +08:00
parent 321fad8a0d
commit 7d7f13d009
19 changed files with 1534 additions and 388 deletions

View File

@@ -0,0 +1,25 @@
# 宝塔站点 Nginx 配置示例(可与「反向代理」界面等效)
# 使用前请替换:
# - server_name你的域名或 IP
# - root你的项目 dist 目录绝对路径(与宝塔「网站根目录」一致)
# 保存后:宝塔 → 网站 → 对应站点 → 设置 → 配置文件,粘贴或合并到 server { } 内,然后重载 Nginx。
server {
listen 80;
server_name view.airtep.com; # 改成你的域名或 IP
root /www/wwwroot/view.airtep.com/720yun-offline/dist; # 改成你的 dist 绝对路径
index index.html;
location / {
try_files $uri $uri/ /index.html;
}
location /api {
proxy_pass http://127.0.0.1:5599;
proxy_http_version 1.1;
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 X-Forwarded-Proto $scheme;
}
}