added proxy section on gcube-app.xml template

This commit is contained in:
Roberto Cirillo 2019-01-18 17:48:47 +01:00
parent 3d747a953c
commit 9e73f5fd69
1 changed files with 12 additions and 0 deletions

View File

@ -6,6 +6,18 @@
{% if item.description is defined %}
<description> {{ item.description }} </description>
{% endif %}
{% if webapp_proxy_endpoint is defined %}
<proxy protocol="{{ webapp_proxy_protocol }}">
<hostname>{{ webapp_proxy_endpoint }}</hostname>
{% if webapp_proxy_protocol == 'https' %}
<port>{{ webapp_proxy_port | default ('443') }}</port>
{% elif webapp_proxy_protocol == 'http' %}
<port>{{ webapp_proxy_port | default ('80') }}</port>
{% else %}
<port>{{ webapp_proxy_port }}</port>
{% endif %}
</proxy>
{% endif %}
{% if item.persistence_location is defined %}
<persistence location="{{ item.persistence_location }}"/>
{% endif %}