Set Nginx tweaks according to Minio docs
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
995d3a8829
commit
1a0de16a91
@ -55,14 +55,18 @@
|
|||||||
|
|
||||||
- name: Copy over the Nginx custom upload file
|
- name: Copy over the Nginx custom upload file
|
||||||
template:
|
template:
|
||||||
src: upload.conf.j2
|
src: "{{ item }}"
|
||||||
dest: /home/dokku/minio/nginx.conf.d/upload.conf
|
dest: "/home/dokku/minio/nginx.conf.d/{{ item }}"
|
||||||
owner: dokku
|
owner: dokku
|
||||||
group: dokku
|
group: dokku
|
||||||
|
with_items:
|
||||||
|
- upload.conf
|
||||||
|
- proxy.conf
|
||||||
|
- headers.conf
|
||||||
become: true
|
become: true
|
||||||
|
|
||||||
- name: Restart Nginx to set upload configuration
|
- name: Restart Nginx to set upload configuration
|
||||||
become: true
|
become: true
|
||||||
service:
|
service:
|
||||||
name: nginx
|
name: nginx
|
||||||
state: restarted
|
state: reloaded
|
||||||
|
1
ansible/templates/headers.conf
Normal file
1
ansible/templates/headers.conf
Normal file
@ -0,0 +1 @@
|
|||||||
|
ignore_invalid_headers off;
|
1
ansible/templates/proxy.conf
Normal file
1
ansible/templates/proxy.conf
Normal file
@ -0,0 +1 @@
|
|||||||
|
proxy_buffering off;
|
1
ansible/templates/upload.conf
Normal file
1
ansible/templates/upload.conf
Normal file
@ -0,0 +1 @@
|
|||||||
|
client_max_body_size 0;
|
@ -1 +0,0 @@
|
|||||||
client_max_body_size {{ nginx_max_body_size }};
|
|
@ -2,4 +2,3 @@
|
|||||||
autonomic_admin_mail: "helo@autonomic.zone"
|
autonomic_admin_mail: "helo@autonomic.zone"
|
||||||
domain: "minio.autonomic.zone"
|
domain: "minio.autonomic.zone"
|
||||||
http_port: "9000"
|
http_port: "9000"
|
||||||
nginx_max_body_size: "3000m"
|
|
||||||
|
Reference in New Issue
Block a user