feat(mall): 代码优化

master
waynaqua 1 year ago
parent 4d81ce7577
commit 79c51517c0

@ -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,12 +101,8 @@ 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;

Loading…
Cancel
Save