Leave a Comment

The DigitalOcean GitLab One-Click image uses GitLab's "omnibus" installer which bundles it's own copy of Nginx. You can insert custom Nginx settings, by editing /etc/gitlab/gitlab.rb If you wanted to increase the client_max_body_size add this line:

nginx['client_max_body_size'] = '50m'

For the change to take effect, you must then run: sudo gitlab-ctl reconfigure

Hey there,
I read over that stack overflow and you want to take a look at the solution for Nginx that was proposed in the top answer. I'll copy it below:

Just load your nginx.conf and add client_max_body_size 50m; ( changing the value to your needs ) in the http block.
Reload nginx to accept the new config by executing sudo service nginx reload and try again to push your commit over http.