From 861806eafd70cf72245f6e8592064fce7ff5d636 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Wed, 22 Nov 2017 17:48:35 +0100 Subject: [PATCH] tomcat: Add new variables to server.xml. See https://support.d4science.org/issues/10153. --- tomcat/defaults/main.yml | 5 +++++ tomcat/templates/tomcat-server.xml.j2 | 24 +++++++++++++++++++----- 2 files changed, 24 insertions(+), 5 deletions(-) diff --git a/tomcat/defaults/main.yml b/tomcat/defaults/main.yml index 8f89f17a..1c1801e0 100644 --- a/tomcat/defaults/main.yml +++ b/tomcat/defaults/main.yml @@ -9,6 +9,7 @@ tomcat_pkgs: - libapr1 tomcat_user: tomcat7 tomcat_max_threads: 200 + tomcat_min_heap_size: 2048m tomcat_permgen_defined: True tomcat_heap_size: '{{ tomcat_min_heap_size }}' @@ -29,6 +30,10 @@ tomcat_ajp_enabled: False tomcat_ajp_port: 8009 tomcat_ajp_address: 127.0.0.1 tomcat_direct_access: False +tomcat_reverse_proxy_name_enabled: False +tomcat_reverse_proxy_name: '{{ ansible_fqdn }}' +tomcat_reverse_proxy_port: '{{ http_port | default(80) }}' +proxyName and proxyPort # There is a bug that kills tomcat after 50 days if the shutdown port is enabled # Disable the shutdown port by default #tomcat_shutdown_port: 8005 diff --git a/tomcat/templates/tomcat-server.xml.j2 b/tomcat/templates/tomcat-server.xml.j2 index 7007299c..d64761b2 100644 --- a/tomcat/templates/tomcat-server.xml.j2 +++ b/tomcat/templates/tomcat-server.xml.j2 @@ -62,8 +62,11 @@ {% if tomcat_http_enabled %} - + {% endif %} {% endif %}