Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoachim Brandon LeBlanc <demosdemon@gmail.com>2013-11-15 21:49:31 +0400
committerJoachim Brandon LeBlanc <demosdemon@gmail.com>2013-11-15 21:49:31 +0400
commitc09aed8b07d9930491f66924582596c1100ba467 (patch)
tree703113218be79bb17959d48d4da57634a1cefaf4 /lib/support
parentc938833bd9f5373af5b8012df39a360517fd5261 (diff)
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).
Diffstat (limited to 'lib/support')
-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;