Commit 7ad70a56d3258687b5e129b15dbfca4edb199eb4
1 parent
119c782e
Exists in
spb-stable
and in
3 other branches
Git over ssh and http are different things.
Showing
2 changed files
with
4 additions
and
4 deletions
Show diff stats
config/gitlab.yml.example
@@ -203,8 +203,8 @@ production: &base | @@ -203,8 +203,8 @@ production: &base | ||
203 | git: | 203 | git: |
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 | ||
207 | - # Please also change the limit for your webserver (for Nginx see lib/support/nginx/gitlab) | 206 | + # This value can be increased if you have very large commits with git over ssh |
207 | + # Git over http is limited by your webserver (for Nginx see lib/support/nginx/gitlab) | ||
208 | max_size: 5242880 # 5.megabytes | 208 | max_size: 5242880 # 5.megabytes |
209 | # Git timeout to read a commit, in seconds | 209 | # Git timeout to read a commit, in seconds |
210 | timeout: 10 | 210 | timeout: 10 |
lib/support/nginx/gitlab
@@ -12,8 +12,8 @@ server { | @@ -12,8 +12,8 @@ server { | ||
12 | server_tokens off; # don't show the version number, a security best practice | 12 | server_tokens off; # don't show the version number, a security best practice |
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 | ||
16 | - # Also increase this if you want to upload large attachments | 15 | + # Increase this if you want to upload large attachments |
16 | + # Or if you want to accept large git objects over http | ||
17 | client_max_body_size 5m; | 17 | client_max_body_size 5m; |
18 | 18 | ||
19 | # individual nginx logs for this gitlab vhost | 19 | # individual nginx logs for this gitlab vhost |