diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2018-12-21 13:25:02 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2019-01-02 08:52:03 +0100 |
commit | 1f3564a99e21af5bd4ac4d11fa3ec7c3885e5208 (patch) | |
tree | 255291d12eb6f025694f2bb1fb8717612d2b6e7b /ansible/templates/nginx/malabaricus/sites-enabled/minio | |
parent | 1cd44b1fb602fee7f844764f866ce19311279b88 (diff) | |
download | infra-1f3564a99e21af5bd4ac4d11fa3ec7c3885e5208.tar.gz infra-1f3564a99e21af5bd4ac4d11fa3ec7c3885e5208.tar.bz2 infra-1f3564a99e21af5bd4ac4d11fa3ec7c3885e5208.tar.xz infra-1f3564a99e21af5bd4ac4d11fa3ec7c3885e5208.zip |
minio
Diffstat (limited to 'ansible/templates/nginx/malabaricus/sites-enabled/minio')
-rw-r--r-- | ansible/templates/nginx/malabaricus/sites-enabled/minio | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/ansible/templates/nginx/malabaricus/sites-enabled/minio b/ansible/templates/nginx/malabaricus/sites-enabled/minio new file mode 100644 index 0000000..9855e49 --- /dev/null +++ b/ansible/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; + } +} |