From f2f8d661a0f1a99604fd1c502c708d6824948376 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Mon, 14 Oct 2019 21:27:28 +0200 Subject: nextcloud deployment made easier --- .../nginx/vhost/templates/generic-proxy-no-buffering-with-acme.conf.j2 | 3 +++ 1 file changed, 3 insertions(+) (limited to 'roles/nginx/vhost/templates/generic-proxy-no-buffering-with-acme.conf.j2') diff --git a/roles/nginx/vhost/templates/generic-proxy-no-buffering-with-acme.conf.j2 b/roles/nginx/vhost/templates/generic-proxy-no-buffering-with-acme.conf.j2 index 55bd5ac6..0d3e1db2 100644 --- a/roles/nginx/vhost/templates/generic-proxy-no-buffering-with-acme.conf.j2 +++ b/roles/nginx/vhost/templates/generic-proxy-no-buffering-with-acme.conf.j2 @@ -39,5 +39,8 @@ server { proxy_set_header Connection $connection_upgrade; proxy_pass {{ nginx_vhost.proxy_pass }}; +{% if 'proxy_redirect' in nginx_vhost %} + proxy_redirect {{ nginx_vhost.proxy_redirect.redirect }} {{ nginx_vhost.proxy_redirect.replacement }}; +{% endif %} } } -- cgit v1.2.3