aboutsummaryrefslogtreecommitdiff
path: root/ansible/plays/templates/nginx/malabaricus/sites-enabled/minio
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2019-09-10 08:57:06 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2019-09-10 08:57:06 +0200
commitb296d7987e5558b11bdf16dced7b1f139bea0499 (patch)
treebbbab8ccdec3c7ca116850a2558f498fb8a9ae4d /ansible/plays/templates/nginx/malabaricus/sites-enabled/minio
parent46934bb125c6b3fc53b1669cb5131f9c2f06ac0e (diff)
downloadinfra-b296d7987e5558b11bdf16dced7b1f139bea0499.tar.gz
infra-b296d7987e5558b11bdf16dced7b1f139bea0499.tar.bz2
infra-b296d7987e5558b11bdf16dced7b1f139bea0499.tar.xz
infra-b296d7987e5558b11bdf16dced7b1f139bea0499.zip
o Moving mw and malabaricus to plays/.
Diffstat (limited to 'ansible/plays/templates/nginx/malabaricus/sites-enabled/minio')
-rw-r--r--ansible/plays/templates/nginx/malabaricus/sites-enabled/minio35
1 files changed, 35 insertions, 0 deletions
diff --git a/ansible/plays/templates/nginx/malabaricus/sites-enabled/minio b/ansible/plays/templates/nginx/malabaricus/sites-enabled/minio
new file mode 100644
index 0000000..9855e49
--- /dev/null
+++ b/ansible/plays/templates/nginx/malabaricus/sites-enabled/minio
@@ -0,0 +1,35 @@
+# vim: filetype=jinja
+
+server {
+{% if ipv6 is defined %}
+ listen {{ ipv6 }};
+{% endif %}
+{% if ipv4 is defined %}
+ listen {{ ipv4 }};
+{% endif %}
+{% if server_name is defined %}
+ server_name {{ server_name }};
+{% else %}
+ server_name _;
+{% endif %}
+
+ ignore_invalid_headers off;
+ # Allow any size file to be uploaded.
+ # Set to a value such as 1000m; to restrict file size to a specific value
+ client_max_body_size 0;
+ # To disable buffering
+ proxy_buffering off;
+
+ root /var/www/html;
+
+ location / {
+ try_files $uri @proxy;
+ }
+
+ location @proxy {
+ proxy_set_header Host $host;
+ proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+ proxy_set_header X-Forwarded-Proto $scheme;
+ proxy_pass http://127.0.0.1:9000;
+ }
+}