summaryrefslogtreecommitdiff
path: root/roles/nginx/vhost/templates/generic-proxy-no-buffering-with-acme.conf.j2
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2019-10-14 21:27:28 +0200
committerChristian Pointner <equinox@spreadspace.org>2019-10-14 21:27:28 +0200
commitf2f8d661a0f1a99604fd1c502c708d6824948376 (patch)
tree1ac90e398726c2ab85d6937de4a6a6352c7a91d6 /roles/nginx/vhost/templates/generic-proxy-no-buffering-with-acme.conf.j2
parentfinalize wolke.elevate.at (diff)
nextcloud deployment made easier
Diffstat (limited to 'roles/nginx/vhost/templates/generic-proxy-no-buffering-with-acme.conf.j2')
-rw-r--r--roles/nginx/vhost/templates/generic-proxy-no-buffering-with-acme.conf.j23
1 files changed, 3 insertions, 0 deletions
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 %}
}
}