脚本更新、配置更新

This commit is contained in:
amb
2026-09-02 16:32:26 +08:00
parent d44f8303e7
commit b4dfc5e711
5 changed files with 81 additions and 28 deletions
+19
View File
@@ -0,0 +1,19 @@
# 前端容器内部 nginx —— 负责 SPA 路由回退
server {
listen 80;
server_name _;
root /usr/share/nginx/html;
index index.html;
# 关键:所有找不到的路径回退到 index.htmlVue Router history 模式必需)
location / {
try_files $uri $uri/ /index.html;
}
# 静态资源缓存
location /assets/ {
expires 30d;
add_header Cache-Control "public, immutable";
}
}