Commit c09aed8b07d9930491f66924582596c1100ba467
1 parent
c938833b
Exists in
master
and in
4 other branches
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).
Showing
1 changed file
with
3 additions
and
0 deletions
Show diff stats
lib/support/nginx/gitlab
... | ... | @@ -11,6 +11,9 @@ server { |
11 | 11 | server_name YOUR_SERVER_FQDN; # e.g., server_name source.example.com; |
12 | 12 | server_tokens off; # don't show the version number, a security best practice |
13 | 13 | root /home/git/gitlab/public; |
14 | + | |
15 | + # Set value of client_max_body_size to at least the value of git.max_size in gitlab.yml | |
16 | + client_max_body_size 5m; | |
14 | 17 | |
15 | 18 | # individual nginx logs for this gitlab vhost |
16 | 19 | access_log /var/log/nginx/gitlab_access.log; | ... | ... |