diff --git a/group_vars/aws_node_local.yml b/group_vars/aws_node_local.yml
index af50e28..b56321c 100644
--- a/group_vars/aws_node_local.yml
+++ b/group_vars/aws_node_local.yml
@@ -125,6 +125,7 @@ atl_proxy_name: "{{ lookup('env', 'ATL_PROXY_NAME') | lower }}"
atl_proxy_port: "{{ lookup('env', 'ATL_TOMCAT_PROXYPORT') }}"
atl_tomcat_port: "{{ lookup('env', 'ATL_TOMCAT_DEFAULTCONNECTORPORT') or '8080' }}"
atl_ssl_proxy: "{{ lookup('env', 'ATL_SSL_PROXY') or 'false' }}"
+atl_apptunnel_port: "{{ lookup('env', 'ATL_APPTUNNEL_PORT') or '' }}"
atl_tomcat_acceptcount: "{{ lookup('env', 'ATL_TOMCAT_ACCEPTCOUNT') or '10' }}"
atl_tomcat_connectiontimeout: "{{ lookup('env', 'ATL_TOMCAT_CONNECTIONTIMEOUT') or '20000' }}"
diff --git a/roles/jira_config/templates/server.xml.j2 b/roles/jira_config/templates/server.xml.j2
index 7293f5b..cecd91e 100644
--- a/roles/jira_config/templates/server.xml.j2
+++ b/roles/jira_config/templates/server.xml.j2
@@ -22,13 +22,10 @@
acceptCount="{{ atl_tomcat_acceptcount }}"
secure="{{ atl_tomcat_secure }}"
scheme="{{ atl_tomcat_scheme }}"
- {% if atl_proxy_name is defined and atl_proxy_name != '' %}
- proxyName="{{ atl_proxy_name }}"
- {% endif %}
- {% if atl_proxy_port is defined and atl_proxy_port != '' %}
- proxyPort="{{ atl_proxy_port }}"
- {% endif %}
-
+ {% if atl_proxy_name is defined and atl_proxy_name != '' -%}proxyName="{{ atl_proxy_name }}"
+ {% endif -%}
+ {% if atl_proxy_port is defined and atl_proxy_port != '' -%}proxyPort="{{ atl_proxy_port }}"
+ {% endif -%}
relaxedPathChars="[]|"
relaxedQueryChars="[]|{}^\`"<>"
bindOnInit="false"
@@ -40,7 +37,6 @@
{% endif %}
+ {% if atl_apptunnel_port is defined and atl_apptunnel_port != '' %}
+
+ {% endif %}
+