解决:Maven-向 Nexus 私服发布包报错, Return code is: 413, ReasonPhrase: Request Entity Too Large
解决方案
nginx 反向代理处修改单次最大上传为300M.
location /nexus {
proxy_pass http://192.168.1.10:8081/nexus;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
client_max_body_size 300M; # 设置单次上传最大为300m
}
不足之处望指正