library/roles/tomcat-multiple-instances, library/roles/tomcat: Define ad support the 'maxPostSize' option.

This commit is contained in:
Andrea Dell'Amico 2016-12-05 13:58:03 +01:00
parent 5d4b81c21c
commit d1c3d3ebd4
2 changed files with 14 additions and 9 deletions

View File

@ -56,6 +56,7 @@
maxThreads="{{ item.max_threads }}" connectionTimeout="60000" maxThreads="{{ item.max_threads }}" connectionTimeout="60000"
URIEncoding="UTF-8" bindOnInit="false" address="{{ item.http_address }}" URIEncoding="UTF-8" bindOnInit="false" address="{{ item.http_address }}"
port="{{ item.http_port }}" protocol="HTTP/1.1" port="{{ item.http_port }}" protocol="HTTP/1.1"
maxPostSize="{{ item.max_post_size | default(104857600) }}"
redirectPort="8443" /> redirectPort="8443" />
{% endif %} {% endif %}
@ -63,7 +64,9 @@
<!-- Define an AJP 1.3 Connector on port {{ tomcat_ajp_port }} --> <!-- Define an AJP 1.3 Connector on port {{ tomcat_ajp_port }} -->
<Connector port="{{ item.ajp_port }}" protocol="AJP/1.3" redirectPort="8443" <Connector port="{{ item.ajp_port }}" protocol="AJP/1.3" redirectPort="8443"
enableLookups="false" address="{{ item.ajp_address }}" enableLookups="false" address="{{ item.ajp_address }}"
maxThreads="{{ item.max_threads }}" connectionTimeout="60000" maxThreads="{{ item.max_threads }}"
connectionTimeout="60000"
maxPostSize="{{ item.max_post_size | default(104857600) }}"
URIEncoding="UTF-8" bindOnInit="false" /> URIEncoding="UTF-8" bindOnInit="false" />
{% endif %} {% endif %}

View File

@ -80,6 +80,7 @@
maxThreads="{{ tomcat_max_threads }}" connectionTimeout="60000" maxThreads="{{ tomcat_max_threads }}" connectionTimeout="60000"
URIEncoding="UTF-8" bindOnInit="false" address="{{ tomcat_http_address }}" URIEncoding="UTF-8" bindOnInit="false" address="{{ tomcat_http_address }}"
port="{{ tomcat_http_port }}" protocol="HTTP/1.1" port="{{ tomcat_http_port }}" protocol="HTTP/1.1"
maxPostSize="{{ tomcat_max_post_size | default(104857600) }}"
redirectPort="8443" /> redirectPort="8443" />
<!-- Define a SSL HTTP/1.1 Connector on port 8443 <!-- Define a SSL HTTP/1.1 Connector on port 8443
@ -97,6 +98,7 @@
<Connector port="{{ tomcat_ajp_port }}" protocol="AJP/1.3" redirectPort="8443" <Connector port="{{ tomcat_ajp_port }}" protocol="AJP/1.3" redirectPort="8443"
enableLookups="false" address="{{ tomcat_ajp_address }}" maxPostSize="{{ tomcat_max_post_size }}" enableLookups="false" address="{{ tomcat_ajp_address }}" maxPostSize="{{ tomcat_max_post_size }}"
maxThreads="{{ tomcat_max_threads }}" connectionTimeout="60000" maxThreads="{{ tomcat_max_threads }}" connectionTimeout="60000"
maxPostSize="{{ tomcat_max_post_size | default(104857600) }}"
URIEncoding="UTF-8" bindOnInit="false" /> URIEncoding="UTF-8" bindOnInit="false" />
{% endif %} {% endif %}