fix: 修复 Nginx 静态文件配置,优先使用本地文件
This commit is contained in:
2
TOOLS.md
2
TOOLS.md
@@ -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 认证成功
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user