summaryrefslogtreecommitdiff
path: root/roles/nginx
diff options
context:
space:
mode:
Diffstat (limited to 'roles/nginx')
-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 %}
}
}