Use the custom files method for client size
This commit is contained in:
@ -44,3 +44,20 @@
|
||||
mappings:
|
||||
- "https:443:{{ http_port }}"
|
||||
state: present
|
||||
|
||||
- name: Create Nginx customisation directory
|
||||
file:
|
||||
path: /home/dokku/minio/nginx.conf.d/
|
||||
state: directory
|
||||
owner: dokku
|
||||
group: dokku
|
||||
with_items:
|
||||
become: true
|
||||
|
||||
- name: Copy over the Nginx custom upload file
|
||||
template:
|
||||
src: upload.conf.j2
|
||||
dest: /home/dokku/minio/nginx.conf.d/upload.conf
|
||||
owner: dokku
|
||||
group: dokku
|
||||
become: true
|
||||
|
1
ansible/templates/upload.conf.j2
Normal file
1
ansible/templates/upload.conf.j2
Normal file
@ -0,0 +1 @@
|
||||
client_max_body_size {{ nginx_max_body_size }};
|
@ -1,4 +1,5 @@
|
||||
---
|
||||
domain: "minio.autonomic.zone"
|
||||
autonomic_admin_mail: "helo@autonomic.zone"
|
||||
domain: "minio.autonomic.zone"
|
||||
http_port: "9000"
|
||||
nginx_max_body_size: "100m"
|
||||
|
Reference in New Issue
Block a user