【异常】error: RPC failed; HTTP 413 curl 22 The requested URL returned error: 413 Request Entity Too Lar

Counting objects: 1034, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (583/583), done.
error: RPC failed; HTTP 413 curl 22 The requested URL returned error: 413 Request Entity Too Large
fatal: The remote end hung up unexpectedly
Writing objects: 100% (1034/1034), 116.66 MiB | 15.17 MiB/s, done.
Total 1034 (delta 411), reused 1034 (delta 411)
fatal: The remote end hung up unexpectedly
Everything up-to-date

调整Nginx上传大小  或者直接通过服务器ip上传

client_max_body_size 500m;

location ^~ / {
                    client_max_body_size 500m;
                proxy_set_header Host $http_host;
                      proxy_set_header X-Real-IP $remote_addr;
                      proxy_set_header REMOTE-HOST $remote_addr;
                      proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
                proxy_pass http://192.1.1.2:8099;
                proxy_connect_timeout 180s;
               proxy_send_timeout 180s;
                     proxy_read_timeout 180s;
        }

如果是gitlab自带的Nginx的话  同理

一般在这个目录下/var/opt/gitlab/nginx/conf/gitlab-http.conf

修改完需要重启Nginx

猜你喜欢

转载自blog.csdn.net/G971005287W/article/details/131533929