From 9e73f5fd69916382f8c07be229cf4435cf1a734d Mon Sep 17 00:00:00 2001 From: Roberto Date: Fri, 18 Jan 2019 17:48:47 +0100 Subject: [PATCH] added proxy section on gcube-app.xml template --- smartgears/gcubeapp-setup/templates/gcube-app.xml.j2 | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/smartgears/gcubeapp-setup/templates/gcube-app.xml.j2 b/smartgears/gcubeapp-setup/templates/gcube-app.xml.j2 index c1bb702..ff10b79 100644 --- a/smartgears/gcubeapp-setup/templates/gcube-app.xml.j2 +++ b/smartgears/gcubeapp-setup/templates/gcube-app.xml.j2 @@ -6,6 +6,18 @@ {% if item.description is defined %} {{ item.description }} {% endif %} +{% if webapp_proxy_endpoint is defined %} + + {{ webapp_proxy_endpoint }} +{% if webapp_proxy_protocol == 'https' %} + {{ webapp_proxy_port | default ('443') }} +{% elif webapp_proxy_protocol == 'http' %} + {{ webapp_proxy_port | default ('80') }} +{% else %} + {{ webapp_proxy_port }} +{% endif %} + +{% endif %} {% if item.persistence_location is defined %} {% endif %}