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;