From 79c51517c0c2d96d22a8ad1a82aa3a87c06f9b25 Mon Sep 17 00:00:00 2001 From: waynaqua <1669738430@qq.com> Date: Thu, 20 Jul 2023 11:18:49 +0800 Subject: [PATCH] =?UTF-8?q?feat(mall):=20=E4=BB=A3=E7=A0=81=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nginx/nginx.conf | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/nginx/nginx.conf b/nginx/nginx.conf index e4f07b7..f0bdfaf 100644 --- a/nginx/nginx.conf +++ b/nginx/nginx.conf @@ -50,6 +50,7 @@ http { listen [::]:80; server_name _; root /usr/share/nginx/html; + client_max_body_size 500m; # Load configuration files for the default server block. include /etc/nginx/default.d/*.conf; @@ -100,20 +101,16 @@ http { } - location /upload { - proxy_pass http://127.0.0.1:81/upload; - proxy_set_header X-Real-IP $remote_addr; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_set_header Host $http_host; - proxy_set_header X-NginX-Proxy true; + location ~ ^/upload/ { + root /opt/waynboot-mall; } error_page 404 /404.html; - location = /404.html { + location = /404.html { } error_page 500 502 503 504 /50x.html; - location = /50x.html { + location = /50x.html { } }