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

@@ -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;
}