summaryrefslogtreecommitdiff
path: root/lib/support/nginx
diff options
context:
space:
mode:
authorBernhard Weisshuhn (a.k.a. bernhorst) <bkw@codingforce.com>2013-12-08 15:49:01 +0100
committerBernhard Weisshuhn (a.k.a. bernhorst) <bkw@codingforce.com>2013-12-08 15:49:01 +0100
commitc60a7b5f0a5d0d7a3bff858460e74272fd437acc (patch)
tree01c3ac20d4daac54bbe00c6c7092a9d0151f4cd7 /lib/support/nginx
parentd697818d8b0ae57b068f0d4fdcde7a407c052539 (diff)
downloadgitlab-ci-c60a7b5f0a5d0d7a3bff858460e74272fd437acc.tar.gz
allow runners to submit large build logs
The default nginx configuration will only allow for 1 megabyte request bodies, so large build logs from runners will be rejected by the server. This patch sets the limit to 10 megabytes. I'm not sure what a sensible default might be, but 1m seem a bit over-conservative to me.
Diffstat (limited to 'lib/support/nginx')
-rw-r--r--lib/support/nginx/gitlab_ci6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/support/nginx/gitlab_ci b/lib/support/nginx/gitlab_ci
index 7c5fca1..e40c18f 100644
--- a/lib/support/nginx/gitlab_ci
+++ b/lib/support/nginx/gitlab_ci
@@ -29,4 +29,8 @@ server {
proxy_pass http://gitlab_ci;
}
-} \ No newline at end of file
+
+ # adjust this to match the largest build log your runners might submit,
+ # set to 0 to disable limit
+ client_max_body_size 10m;
+}