From d1c3d3ebd48bb6a86ae586fc4daaff9f460ca551 Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Mon, 5 Dec 2016 13:58:03 +0100 Subject: [PATCH] library/roles/tomcat-multiple-instances, library/roles/tomcat: Define ad support the 'maxPostSize' option. --- .../templates/tomcat-server.xml.j2 | 13 ++++++++----- tomcat/templates/tomcat-server.xml.j2 | 10 ++++++---- 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/tomcat-multiple-instances/templates/tomcat-server.xml.j2 b/tomcat-multiple-instances/templates/tomcat-server.xml.j2 index 89c3053..ed1b881 100644 --- a/tomcat-multiple-instances/templates/tomcat-server.xml.j2 +++ b/tomcat-multiple-instances/templates/tomcat-server.xml.j2 @@ -52,19 +52,22 @@ {% if item.http_enabled %} {% endif %} {% if item.ajp_enabled %} + enableLookups="false" address="{{ item.ajp_address }}" + maxThreads="{{ item.max_threads }}" + connectionTimeout="60000" + maxPostSize="{{ item.max_post_size | default(104857600) }}" + URIEncoding="UTF-8" bindOnInit="false" /> {% endif %} diff --git a/tomcat/templates/tomcat-server.xml.j2 b/tomcat/templates/tomcat-server.xml.j2 index deb0673..ce5556e 100644 --- a/tomcat/templates/tomcat-server.xml.j2 +++ b/tomcat/templates/tomcat-server.xml.j2 @@ -76,10 +76,11 @@ {% if tomcat_http_enabled %} + maxPostSize="{{ tomcat_max_post_size | default(104857600) }}" + URIEncoding="UTF-8" bindOnInit="false" /> {% endif %}