Skip to content

Commit ecbb5df

Browse files
authored
Merge pull request #212 from scottlinux/nginx-increase-upload-size
nginx: increase upload size limit to allow Jenkins UI plugin uploads
2 parents 542d779 + 477a300 commit ecbb5df

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

cinch/roles/nginx/defaults/main.yml

+3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ service_name: "{{ hostvars[inventory_hostname]['ansible_host'] | default(invento
88
nginx_error_level: "warn"
99
nginx_worker_processes: 1
1010
nginx_gzip_status: "on"
11+
# Increase upload limits to allow jenkins plugin uploads
12+
nginx_max_body_size: 100M
13+
nginx_send_timeout: 120s
1114

1215
## variables unset by default
1316
httpd_no_error_pages: false

cinch/roles/nginx/templates/etc/nginx/nginx.conf

+5
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ http {
3131
types_hash_max_size 2048;
3232
#server_names_hash_bucket_size 128;
3333

34+
client_body_in_file_only clean;
35+
client_body_buffer_size 32K;
36+
client_max_body_size {{ nginx_max_body_size }};
37+
send_timeout {{ nginx_send_timeout }};
38+
3439
include /etc/nginx/mime.types;
3540
default_type application/octet-stream;
3641

0 commit comments

Comments
 (0)