library/roles/smartgears/smartgears/templates/container.xml.j2: Use the https port only if http_redirect_to_https is True.

This commit is contained in:
Andrea Dell'Amico 2016-10-03 22:51:36 +02:00
parent da44ef0eaa
commit bd076197a3
1 changed files with 2 additions and 0 deletions

View File

@ -3,10 +3,12 @@
<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 %}
{% endif %}
{% else %}
<port>{{ item.http_port }}</port>
{% endif %}