aboutsummaryrefslogtreecommitdiff
path: root/ansible/plays/templates/nginx/malabaricus/sites-enabled/minio
diff options
context:
space:
mode:
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;
+ }
+}