fix: 修复 Nginx 静态文件配置,优先使用本地文件

This commit is contained in:
maoshen
2026-04-14 02:31:43 +00:00
parent 4a4bb5da9d
commit 08f2315567
2 changed files with 6 additions and 1 deletions

View File

@@ -71,7 +71,7 @@ Add whatever helps you do your job. This is your cheat sheet.
### 城市手册部署
- **主机**: cssc.datalibstar.com (1.15.30.241)
- **用户**: ubuntu ⚠️ **不是 mashen**
- **用户**: Ubuntu ⚠️ **注意大写 U**
- **密码**: 825670@MashenClaw
- **状态**: ✅ SSH 认证成功

View File

@@ -28,6 +28,11 @@ server {
}
location /static {
# Try local static files first, then proxy to backend
try_files $uri $uri/ @backend_static;
}
location @backend_static {
proxy_pass http://backend:8000;
}