Commit 119c782e0b9f691a3eeff1f44c23522aa4f9c552

Authored by dosire
1 parent dcc6ff5b

More explanation for upload limits.

config/gitlab.yml.example
@@ -204,6 +204,7 @@ production: &base @@ -204,6 +204,7 @@ production: &base
204 bin_path: /usr/bin/git 204 bin_path: /usr/bin/git
205 # Max size of a git object (e.g. a commit), in bytes 205 # Max size of a git object (e.g. a commit), in bytes
206 # This value can be increased if you have very large commits 206 # This value can be increased if you have very large commits
  207 + # Please also change the limit for your webserver (for Nginx see lib/support/nginx/gitlab)
207 max_size: 5242880 # 5.megabytes 208 max_size: 5242880 # 5.megabytes
208 # Git timeout to read a commit, in seconds 209 # Git timeout to read a commit, in seconds
209 timeout: 10 210 timeout: 10
lib/support/nginx/gitlab
@@ -13,6 +13,7 @@ server { @@ -13,6 +13,7 @@ server {
13 root /home/git/gitlab/public; 13 root /home/git/gitlab/public;
14 14
15 # Set value of client_max_body_size to at least the value of git.max_size in gitlab.yml 15 # Set value of client_max_body_size to at least the value of git.max_size in gitlab.yml
  16 + # Also increase this if you want to upload large attachments
16 client_max_body_size 5m; 17 client_max_body_size 5m;
17 18
18 # individual nginx logs for this gitlab vhost 19 # individual nginx logs for this gitlab vhost