Add client_max_body_size to nginx site

Added the client_max_body_size declaration to the nginx server block to prevent 413 errors when http post body is larger than the default (1m).
This commit is contained in:
Joachim Brandon LeBlanc 2013-11-15 11:49:31 -06:00
parent c938833bd9
commit c09aed8b07

View file

@ -11,6 +11,9 @@ server {
server_name YOUR_SERVER_FQDN; # e.g., server_name source.example.com;
server_tokens off; # don't show the version number, a security best practice
root /home/git/gitlab/public;
# Set value of client_max_body_size to at least the value of git.max_size in gitlab.yml
client_max_body_size 5m;
# individual nginx logs for this gitlab vhost
access_log /var/log/nginx/gitlab_access.log;