mirror of
https://bitbucket.org/atlassian/dc-deployments-automation.git
synced 2025-12-14 00:43:06 -06:00
DCD-224: Fixes to the server.xml template.
This commit is contained in:
@@ -17,7 +17,7 @@ atl_tomcat_port: "8080"
|
|||||||
atl_tomcat_mgmt_port: "8005"
|
atl_tomcat_mgmt_port: "8005"
|
||||||
atl_tomcat_acceptcount: "10"
|
atl_tomcat_acceptcount: "10"
|
||||||
atl_tomcat_connectiontimeout: "20000"
|
atl_tomcat_connectiontimeout: "20000"
|
||||||
atl_tomcat_contextpath: "false"
|
atl_tomcat_contextpath: ""
|
||||||
atl_tomcat_maxthreads: "200"
|
atl_tomcat_maxthreads: "200"
|
||||||
atl_tomcat_minsparethreads: "10"
|
atl_tomcat_minsparethreads: "10"
|
||||||
atl_tomcat_protocol: "HTTP/1.1"
|
atl_tomcat_protocol: "HTTP/1.1"
|
||||||
|
|||||||
@@ -31,4 +31,15 @@ def test_server_file(host):
|
|||||||
assert f.exists
|
assert f.exists
|
||||||
assert f.contains('Connector port="8080"')
|
assert f.contains('Connector port="8080"')
|
||||||
assert f.contains('Server port="8005"')
|
assert f.contains('Server port="8005"')
|
||||||
|
assert f.contains('<Context path=""')
|
||||||
|
assert f.contains('maxThreads="200"')
|
||||||
|
assert f.contains('minSpareThreads="10"')
|
||||||
|
assert f.contains('connectionTimeout="20000"')
|
||||||
|
assert f.contains('enableLookups="false"')
|
||||||
|
assert f.contains('protocol="HTTP/1.1"')
|
||||||
|
assert f.contains('redirectPort=""')
|
||||||
|
assert f.contains('acceptCount="10"')
|
||||||
|
assert f.contains('secure="false"')
|
||||||
|
assert f.contains('scheme="http"')
|
||||||
assert not f.contains('proxyName=')
|
assert not f.contains('proxyName=')
|
||||||
|
assert not f.contains('proxyPort=')
|
||||||
|
|||||||
@@ -13,12 +13,6 @@
|
|||||||
<Service name="Catalina">
|
<Service name="Catalina">
|
||||||
|
|
||||||
<Connector port="{{ atl_tomcat_port }}"
|
<Connector port="{{ atl_tomcat_port }}"
|
||||||
{% 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 %}
|
|
||||||
maxThreads="{{ atl_tomcat_maxthreads }}"
|
maxThreads="{{ atl_tomcat_maxthreads }}"
|
||||||
minSpareThreads="{{ atl_tomcat_minsparethreads }}"
|
minSpareThreads="{{ atl_tomcat_minsparethreads }}"
|
||||||
connectionTimeout="{{ atl_tomcat_connectiontimeout }}"
|
connectionTimeout="{{ atl_tomcat_connectiontimeout }}"
|
||||||
@@ -26,47 +20,48 @@
|
|||||||
protocol="{{ atl_tomcat_protocol }}"
|
protocol="{{ atl_tomcat_protocol }}"
|
||||||
redirectPort="{{ atl_tomcat_redirectport }}"
|
redirectPort="{{ atl_tomcat_redirectport }}"
|
||||||
acceptCount="{{ atl_tomcat_acceptcount }}"
|
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 %}
|
||||||
|
|
||||||
disableUploadTimeout="true"
|
|
||||||
relaxedPathChars="[]|"
|
relaxedPathChars="[]|"
|
||||||
relaxedQueryChars="[]|{}^\`"<>"
|
relaxedQueryChars="[]|{}^\`"<>"
|
||||||
useBodyEncodingForURI="true"
|
bindOnInit="false"
|
||||||
maxHttpHeaderSize="8192"
|
maxHttpHeaderSize="8192"
|
||||||
bindOnInit="false" />
|
useBodyEncodingForURI="true"
|
||||||
|
disableUploadTimeout="true" />
|
||||||
|
|
||||||
<Engine name="Catalina"
|
<Engine name="Catalina"
|
||||||
defaultHost="localhost">
|
defaultHost="localhost">
|
||||||
|
|
||||||
<Host name="localhost"
|
<Host name="localhost"
|
||||||
appBase="webapps"
|
appBase="webapps"
|
||||||
unpackWARs="true"
|
unpackWARs="true"
|
||||||
autoDeploy="true">
|
autoDeploy="true">
|
||||||
|
|
||||||
<Context path=""
|
<Context path="{{ atl_tomcat_contextpath }}"
|
||||||
docBase="${catalina.home}/atlassian-jira"
|
docBase="${catalina.home}/atlassian-jira"
|
||||||
reloadable="false"
|
reloadable="false"
|
||||||
useHttpOnly="true">
|
useHttpOnly="true">
|
||||||
|
|
||||||
<Resource name="UserTransaction"
|
<Resource name="UserTransaction"
|
||||||
auth="Container"
|
auth="Container"
|
||||||
type="javax.transaction.UserTransaction"
|
type="javax.transaction.UserTransaction"
|
||||||
factory="org.objectweb.jotm.UserTransactionFactory"
|
factory="org.objectweb.jotm.UserTransactionFactory"
|
||||||
jotm.timeout="60"/>
|
jotm.timeout="60"/>
|
||||||
|
|
||||||
<Manager pathname=""/>
|
<Manager pathname=""/>
|
||||||
|
|
||||||
<JarScanner scanManifest="false"/>
|
<JarScanner scanManifest="false"/>
|
||||||
|
|
||||||
<Valve className="org.apache.catalina.valves.StuckThreadDetectionValve"
|
<Valve className="org.apache.catalina.valves.StuckThreadDetectionValve"
|
||||||
threshold="120" />
|
threshold="120" />
|
||||||
|
|
||||||
</Context>
|
</Context>
|
||||||
|
|
||||||
</Host>
|
</Host>
|
||||||
|
|
||||||
<Valve className="org.apache.catalina.valves.AccessLogValve"
|
<Valve className="org.apache.catalina.valves.AccessLogValve"
|
||||||
pattern="%a %{jira.request.id}r %{jira.request.username}r %t "%m %U%q %H" %s %b %D "%{Referer}i" "%{User-Agent}i" "%{jira.request.assession.id}r""/>
|
pattern="%a %{jira.request.id}r %{jira.request.username}r %t "%m %U%q %H" %s %b %D "%{Referer}i" "%{User-Agent}i" "%{jira.request.assession.id}r""/>
|
||||||
|
|
||||||
</Engine>
|
</Engine>
|
||||||
|
|
||||||
</Service>
|
</Service>
|
||||||
</Server>
|
</Server>
|
||||||
|
|||||||
Reference in New Issue
Block a user