From 08f2315567b463672185c23e8d96af6da4afb2c8 Mon Sep 17 00:00:00 2001 From: maoshen Date: Tue, 14 Apr 2026 02:31:43 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20Nginx=20=E9=9D=99?= =?UTF-8?q?=E6=80=81=E6=96=87=E4=BB=B6=E9=85=8D=E7=BD=AE=EF=BC=8C=E4=BC=98?= =?UTF-8?q?=E5=85=88=E4=BD=BF=E7=94=A8=E6=9C=AC=E5=9C=B0=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- TOOLS.md | 2 +- frontend/nginx.conf | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/TOOLS.md b/TOOLS.md index 40e992a..99c7b2e 100644 --- a/TOOLS.md +++ b/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 认证成功 diff --git a/frontend/nginx.conf b/frontend/nginx.conf index 53858d4..d3ca1bf 100644 --- a/frontend/nginx.conf +++ b/frontend/nginx.conf @@ -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; }