forked from ISTI-ansible-roles/ansible-roles
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:
parent
da44ef0eaa
commit
bd076197a3
|
@ -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 %}
|
||||
|
|
Loading…
Reference in New Issue