From 2238f7813ce93b2fd939bc22c8ee5e19499394d7 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Tue, 11 Apr 2017 17:37:50 +0200 Subject: [PATCH] library/roles/smartgears/smartgears/templates/container.xml.j2: Do not set the https port if the https redirection is enabled. smartgears needs to still publish itself on port 80. --- smartgears/smartgears/templates/container.xml.j2 | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/smartgears/smartgears/templates/container.xml.j2 b/smartgears/smartgears/templates/container.xml.j2 index 961537b9..5f489076 100644 --- a/smartgears/smartgears/templates/container.xml.j2 +++ b/smartgears/smartgears/templates/container.xml.j2 @@ -2,20 +2,14 @@ {{ 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 %} {% else %} {%if http_port is defined %} {{ http_port }} - {% endif %} - {% endif %} {% else %} {{ item.http_port }} {% endif %} + {% endif %} {{ smartgears_country }}