From ce9a344cf12396e2aeb94321579b0b6680891ce6 Mon Sep 17 00:00:00 2001 From: "mula.liu" Date: Mon, 19 Jan 2026 20:10:39 +0800 Subject: [PATCH] Fix error --- frontend/nginx.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/nginx.conf b/frontend/nginx.conf index a38392d..acd9a68 100644 --- a/frontend/nginx.conf +++ b/frontend/nginx.conf @@ -33,8 +33,8 @@ server { proxy_send_timeout 300s; } - # 上传文件代理 - location /uploads/ { + # 上传文件代理 (使用 ^~ 提高优先级,避免被静态文件正则匹配拦截) + location ^~ /uploads/ { proxy_pass http://backend:8000; proxy_http_version 1.1; proxy_set_header Host $host;