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.

This commit is contained in:
Andrea Dell'Amico 2017-04-11 17:37:50 +02:00
parent 53f3e7c28e
commit 2238f7813c
1 changed files with 1 additions and 7 deletions

View File

@ -2,20 +2,14 @@
<hostname>{{ smartgears_hostname }}</hostname>
{% if setup_nginx %}
{% if https_port is defined %}
{% if http_redirect_to_https is defined and http_redirect_to_https %}
<port>{{ https_port }}</port>
{% else %}
<port>{{ http_port }}</port>
{% endif %}
{% else %}
{%if http_port is defined %}
<port>{{ http_port }}</port>
{% endif %}
{% endif %}
{% else %}
<port>{{ item.http_port }}</port>
{% endif %}
{% endif %}
<site>
<country>{{ smartgears_country }}</country>