maven nexus 上次第三方jar包報broke pie

因爲nginx轉發的時候,沒有設置最大上傳文件大小限制 在nginx.conf中添加 client_max_body_size 500m便可;nginx

http {
    include       /etc/nginx/mime.types;
    default_type  application/octet-stream;
     charset utf-8;
    log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
                      '$status $body_bytes_sent "$http_referer" '
                      '"$http_user_agent" "$http_x_forwarded_for"';
    access_log  /var/log/nginx/access.log  main;
    client_max_body_size 10m;  #增長這個參數就能夠指定最大上傳文件大小爲10m了;
    sendfile        on;
    #tcp_nopush     on;
    keepalive_timeout  65;
}
相關文章
相關標籤/搜索