spacepaste

  1.  
  2. <?xml version='1.0' encoding='utf-8'?>
  3. <!--
  4. Licensed to the Apache Software Foundation (ASF) under one or more
  5. contributor license agreements. See the NOTICE file distributed with
  6. this work for additional information regarding copyright ownership.
  7. The ASF licenses this file to You under the Apache License, Version 2.0
  8. (the "License"); you may not use this file except in compliance with
  9. the License. You may obtain a copy of the License at
  10. http://www.apache.org/licenses/LICENSE-2.0
  11. Unless required by applicable law or agreed to in writing, software
  12. distributed under the License is distributed on an "AS IS" BASIS,
  13. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  14. See the License for the specific language governing permissions and
  15. limitations under the License.
  16. -->
  17. <!-- Note: A "Server" is not itself a "Container", so you may not
  18. define subcomponents such as "Valves" at this level.
  19. Documentation at /docs/config/server.html
  20. -->
  21. <Server port="8005" shutdown="SHUTDOWN">
  22. <Listener className="org.apache.catalina.startup.VersionLoggerListener" />
  23. <!-- Security listener. Documentation at /docs/config/listeners.html
  24. <Listener className="org.apache.catalina.security.SecurityListener" />
  25. -->
  26. <!--APR library loader. Documentation at /docs/apr.html -->
  27. <Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" />
  28. <!-- Prevent memory leaks due to use of particular java/javax APIs-->
  29. <Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener" />
  30. <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
  31. <Listener className="org.apache.catalina.core.ThreadLocalLeakPreventionListener" />
  32. <!-- Global JNDI resources
  33. Documentation at /docs/jndi-resources-howto.html
  34. -->
  35. <GlobalNamingResources>
  36. <!-- Editable user database that can also be used by
  37. UserDatabaseRealm to authenticate users
  38. -->
  39. <Resource name="UserDatabase" auth="Container"
  40. type="org.apache.catalina.UserDatabase"
  41. description="User database that can be updated and saved"
  42. factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
  43. pathname="conf/tomcat-users.xml" />
  44. </GlobalNamingResources>
  45. <!-- A "Service" is a collection of one or more "Connectors" that share
  46. a single "Container" Note: A "Service" is not itself a "Container",
  47. so you may not define subcomponents such as "Valves" at this level.
  48. Documentation at /docs/config/service.html
  49. -->
  50. <Service name="Catalina">
  51. <!--The connectors can use a shared executor, you can define one or more named thread pools-->
  52. <!--
  53. <Executor name="tomcatThreadPool" namePrefix="catalina-exec-"
  54. maxThreads="150" minSpareThreads="4"/>
  55. -->
  56. <!-- A "Connector" represents an endpoint by which requests are received
  57. and responses are returned. Documentation at :
  58. Java HTTP Connector: /docs/config/http.html (blocking & non-blocking)
  59. Java AJP Connector: /docs/config/ajp.html
  60. APR (HTTP/AJP) Connector: /docs/apr.html
  61. Define a non-SSL/TLS HTTP/1.1 Connector on port 8080
  62. -->
  63. <Connector port="8080"
  64. protocol="org.apache.coyote.http11.Http11NioProtocol"
  65. URIEncoding="UTF-8"
  66. connectionTimeout="20000"
  67. redirectPort="8443"
  68. maxHttpHeaderSize="32768"
  69. compression="off"
  70. compressableMimeType="text/html,text/xml,text/plain,application/json,text/javascript,application/x-javascript,text/css,text/csv,text/x-web-markdown,application/atom+xml,application/rss+xml,application/atomsvc+xml"
  71. noCompressionUserAgents=".*MSIE 6.*"
  72. compressionMinSize="256"
  73. maxThreads="250"
  74. minSpareThreads="50"
  75. prestartminSpareThreads="true"
  76. maxIdleTime="60000"
  77. acceptCount="100"
  78. />
  79. <!-- A "Connector" using the shared thread pool-->
  80. <!--
  81. <Connector executor="tomcatThreadPool"
  82. port="8080" protocol="HTTP/1.1"
  83. connectionTimeout="20000"
  84. redirectPort="8443" />
  85. -->
  86. <!-- Define a SSL/TLS HTTP/1.1 Connector on port 8443
  87. This connector uses the NIO implementation that requires the JSSE
  88. style configuration. When using the APR/native implementation, the
  89. OpenSSL style configuration is required as described in the APR/native
  90. documentation -->
  91. <Connector port="8443" protocol="org.apache.coyote.http11.Http11NioProtocol"
  92. SSLEnabled="true"
  93. URIEncoding="UTF-8"
  94. maxThreads="200"
  95. minSpareThreads="50"
  96. prestartminSpareThreads="true"
  97. maxIdleTime="60000"
  98. keystoreFile="/opt/alfresco/alf_data/keystore/ssl.keystore"
  99. keystorePass="kT9X6oe68t"
  100. keystoreType="JCEKS"
  101. secure="true"
  102. connectionTimeout="240000"
  103. truststoreFile="/opt/alfresco/alf_data/keystore/ssl.truststore"
  104. truststorePass="kT9X6oe68t"
  105. truststoreType="JCEKS"
  106. clientAuth="want"
  107. scheme="https"
  108. allowUnsafeLegacyRenegotiation="true"
  109. maxHttpHeaderSize="32768"
  110. sslProtocol="TLS"
  111. maxSavePostSize="-1" />
  112. <!-- Define an AJP 1.3 Connector on port 8009 -->
  113. <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" URIEncoding="UTF-8" />
  114. <!-- An Engine represents the entry point (within Catalina) that processes
  115. every request. The Engine implementation for Tomcat stand alone
  116. analyzes the HTTP headers included with the request, and passes them
  117. on to the appropriate Host (virtual host).
  118. Documentation at /docs/config/engine.html -->
  119. <!-- You should set jvmRoute to support load-balancing via AJP ie :
  120. <Engine name="Catalina" defaultHost="localhost" jvmRoute="jvm1">
  121. -->
  122. <Engine name="Catalina" defaultHost="localhost">
  123. <!--For clustering, please take a look at documentation at:
  124. /docs/cluster-howto.html (simple how to)
  125. /docs/config/cluster.html (reference documentation) -->
  126. <!--
  127. <Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"/>
  128. -->
  129. <!-- Use the LockOutRealm to prevent attempts to guess user passwords
  130. via a brute-force attack -->
  131. <Realm className="org.apache.catalina.realm.LockOutRealm">
  132. <!-- This Realm uses the UserDatabase configured in the global JNDI
  133. resources under the key "UserDatabase". Any edits
  134. that are performed against this UserDatabase are immediately
  135. available for use by the Realm. -->
  136. <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
  137. resourceName="UserDatabase"/>
  138. </Realm>
  139. <Host name="localhost" appBase="webapps"
  140. unpackWARs="true" autoDeploy="true">
  141. <!-- SingleSignOn valve, share authentication between web applications
  142. Documentation at: /docs/config/valve.html -->
  143. <!--
  144. <Valve className="org.apache.catalina.authenticator.SingleSignOn" />
  145. -->
  146. <!-- http://serverfault.com/questions/514551/make-tomcat-use-x-real-ip/692604
  147. https://github.com/ecm4u/alfresco-reverse-proxy/blob/master/opt/alfresco/tomcat/conf/server.xml
  148. -->
  149. <Valve className="org.apache.catalina.valves.RemoteIpValve"
  150. remoteIpHeader="x-forwarded-for"
  151. remoteIpProxiesHeader="x-forwarded-by"
  152. protocolHeader="x-forwarded-proto"
  153. requestAttributesEnabled="true" />
  154. <!-- Access log processes all example.
  155. Documentation at: /docs/config/valve.html
  156. Note: The pattern used is equivalent to using pattern="common" -->
  157. <!--
  158. <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
  159. prefix="localhost_access_log" suffix=".txt"
  160. pattern="%h %l %u %t &quot;%r&quot; %s %b" />
  161. -->
  162. </Host>
  163. </Engine>
  164. </Service>
  165. </Server>
  166.