diff options
author | Christian Pointner <equinox@spreadspace.org> | 2019-10-13 03:19:34 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2019-10-13 03:19:34 +0200 |
commit | eb98ae2bb7f5441c6c2bdc85158df0d40f633539 (patch) | |
tree | 39fc1f66300b8cfaee47739a41b2e876f66c919c /roles/nginx/templates/generic-proxy-no-buffering-with-acme.conf.j2 | |
parent | kubernetes standalone cni variants (diff) |
nextcloud role almost done - some stuff still missing
Diffstat (limited to 'roles/nginx/templates/generic-proxy-no-buffering-with-acme.conf.j2')
-rw-r--r-- | roles/nginx/templates/generic-proxy-no-buffering-with-acme.conf.j2 | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/roles/nginx/templates/generic-proxy-no-buffering-with-acme.conf.j2 b/roles/nginx/templates/generic-proxy-no-buffering-with-acme.conf.j2 index 8cad2994..9f165726 100644 --- a/roles/nginx/templates/generic-proxy-no-buffering-with-acme.conf.j2 +++ b/roles/nginx/templates/generic-proxy-no-buffering-with-acme.conf.j2 @@ -23,11 +23,16 @@ server { location / { include snippets/proxy-nobuff.conf; +{% if 'client_max_body_size' in item.value %} + client_max_body_size {{ item.value.client_max_body_size }}; +{% endif %} proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; + proxy_set_header X-Forwarded-Ssl on; + proxy_set_header X-Forwarded-Port $server_port; # for websockets proxy_set_header Upgrade $http_upgrade; |