By keith603006
When I try to push an existing repo to a new repo: error: RPC failed; result=22, HTTP code = 413
I did some research and it seems like I need to edit the nginx.conf to increase the client_max_body_size.
Where is the nginx.conf file for Gitlab though? I cannot seem to find it.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
The GitLab One-Click app uses the “omnibus” version of GitLab. The full-stack required to run is GitLab managed together rather than installed as separate pieces. The configuration file is located in /etc/gitlab/gitlab.rb
In order to add a custom Nginx setting, you’ll need to add something like the following to your configuration.
nginx['custom_gitlab_server_config'] = "client_max_body_size 200M;"
Then run sudo gitlab-ctl reconfigure for the change to take effect.
See the GitLab documentation for more information on configuring Nginx:
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.