From bd076197a357134d2c6a723656971472cd95b339 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Mon, 3 Oct 2016 22:51:36 +0200 Subject: [PATCH] library/roles/smartgears/smartgears/templates/container.xml.j2: Use the https port only if http_redirect_to_https is True. --- smartgears/smartgears/templates/container.xml.j2 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/smartgears/smartgears/templates/container.xml.j2 b/smartgears/smartgears/templates/container.xml.j2 index 74a863fc..2f0a5b04 100644 --- a/smartgears/smartgears/templates/container.xml.j2 +++ b/smartgears/smartgears/templates/container.xml.j2 @@ -3,10 +3,12 @@ {{ smartgears_hostname }} {%if setup_nginx %} {%if https_port is defined %} + {% if http_redirect_to_https is defined and http_redirect_to_https %} {{ https_port }} {% else %} {{ http_port }} {% endif %} + {% endif %} {% else %} {{ item.http_port }} {% endif %}