forked from ISTI-ansible-roles/ansible-roles
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:
parent
53f3e7c28e
commit
2238f7813c
|
@ -2,20 +2,14 @@
|
||||||
|
|
||||||
<hostname>{{ smartgears_hostname }}</hostname>
|
<hostname>{{ smartgears_hostname }}</hostname>
|
||||||
{% if setup_nginx %}
|
{% 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>
|
<port>{{ http_port }}</port>
|
||||||
{% endif %}
|
|
||||||
{% else %}
|
{% else %}
|
||||||
{%if http_port is defined %}
|
{%if http_port is defined %}
|
||||||
<port>{{ http_port }}</port>
|
<port>{{ http_port }}</port>
|
||||||
{% endif %}
|
|
||||||
{% endif %}
|
|
||||||
{% else %}
|
{% else %}
|
||||||
<port>{{ item.http_port }}</port>
|
<port>{{ item.http_port }}</port>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
<site>
|
<site>
|
||||||
<country>{{ smartgears_country }}</country>
|
<country>{{ smartgears_country }}</country>
|
||||||
|
|
Loading…
Reference in New Issue