From e90c60739d3414263c936e245946d8191fa119e0 Mon Sep 17 00:00:00 2001 From: Marco Giuntini Date: Fri, 5 Apr 2019 13:46:35 +0200 Subject: [PATCH] Update template to set https protocol has backend --- templates/reverseproxy_ssl_letsencrypt.conf.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/reverseproxy_ssl_letsencrypt.conf.j2 b/templates/reverseproxy_ssl_letsencrypt.conf.j2 index 9213d3b..b74efc1 100644 --- a/templates/reverseproxy_ssl_letsencrypt.conf.j2 +++ b/templates/reverseproxy_ssl_letsencrypt.conf.j2 @@ -62,7 +62,7 @@ server { proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; proxy_set_header X-Forwarded-Proto $scheme; proxy_set_header X-Frame-Options SAMEORIGIN; - proxy_pass http://{{ item.key }}_backend; + proxy_pass {{ item.value.backend_protocol | default('http') }}://{{ item.key }}_backend; {% if item.value.auth is defined %} auth_basic "Restricted Content"; auth_basic_user_file /etc/nginx/{{ item.key }}_htpasswd;