summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Vosmaer <contact@jacobvosmaer.nl>2013-12-02 23:29:11 -0800
committerJacob Vosmaer <contact@jacobvosmaer.nl>2013-12-02 23:29:11 -0800
commitaa69e29e701088a3f28a2735254ac6166018bd1e (patch)
tree1d7a453ea2077210a71dd9b535dfdf6f84d7870a
parente411f3bab2c20ba22b838bb025fa33e980470d20 (diff)
parentc09aed8b07d9930491f66924582596c1100ba467 (diff)
downloadgitlab-ce-aa69e29e701088a3f28a2735254ac6166018bd1e.tar.gz
Merge pull request #5610 from demosdemon/patch-1
Add client_max_body_size to nginx site
-rw-r--r--lib/support/nginx/gitlab3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/support/nginx/gitlab b/lib/support/nginx/gitlab
index 3e929c52990..4fb203c730c 100644
--- a/lib/support/nginx/gitlab
+++ b/lib/support/nginx/gitlab
@@ -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;