Commit aa69e29e701088a3f28a2735254ac6166018bd1e

Authored by Jacob Vosmaer
2 parents e411f3ba c09aed8b

Merge pull request #5610 from demosdemon/patch-1

Add client_max_body_size to nginx site
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;
... ...