[UUI] Service Mesh Compliance for UUI
[oom.git] / kubernetes / uui / resources / config / server.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- {{/*
3   Licensed to the Apache Software Foundation (ASF) under one or more
4   contributor license agreements.  See the NOTICE file distributed with
5   this work for additional information regarding copyright ownership.
6   The ASF licenses this file to You under the Apache License, Version 2.0
7   (the "License"); you may not use this file except in compliance with
8   the License.  You may obtain a copy of the License at
9       http://www.apache.org/licenses/LICENSE-2.0
10   Unless required by applicable law or agreed to in writing, software
11   distributed under the License is distributed on an "AS IS" BASIS,
12   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   See the License for the specific language governing permissions and
14   limitations under the License.
15 -->
16 <!-- Note:  A "Server" is not itself a "Container", so you may not
17      define subcomponents such as "Valves" at this level.
18      Documentation at /docs/config/server.html
19 */}} -->
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
33   <!-- Global JNDI resources
34        Documentation at /docs/jndi-resources-howto.html
35   -->
36   <GlobalNamingResources>
37     <!-- Editable user database that can also be used by
38          UserDatabaseRealm to authenticate users
39     -->
40     <Resource name="UserDatabase" auth="Container" type="org.apache.catalina.UserDatabase" description="User database that can be updated and saved" factory="org.apache.catalina.users.MemoryUserDatabaseFactory" pathname="conf/tomcat-users.xml" />
41   </GlobalNamingResources>
42
43   <!-- A "Service" is a collection of one or more "Connectors" that share
44        a single "Container" Note:  A "Service" is not itself a "Container",
45        so you may not define subcomponents such as "Valves" at this level.
46        Documentation at /docs/config/service.html
47    -->
48   <Service name="Catalina">
49
50     <!--The connectors can use a shared executor, you can define one or more named thread pools-->
51     <!--
52     <Executor name="tomcatThreadPool" namePrefix="catalina-exec-"
53         maxThreads="150" minSpareThreads="4"/>
54     -->
55
56
57     <!-- A "Connector" represents an endpoint by which requests are received
58          and responses are returned. Documentation at :
59          Java HTTP Connector: /docs/config/http.html
60          Java AJP  Connector: /docs/config/ajp.html
61          APR (HTTP/AJP) Connector: /docs/apr.html
62          Define a non-SSL/TLS HTTP/1.1 Connector on port 8080
63     -->
64     <Connector port="8080" protocol="HTTP/1.1"
65                connectionTimeout="20000"
66                redirectPort="8443" />
67
68     <Connector port="8443" protocol="org.apache.coyote.http11.Http11NioProtocol" maxThreads="150" SSLEnabled="true" scheme="https" secure="true" clientAuth="false" sslProtocol="TLS" keystoreFile="{{ .Values.certInitializer.credsPath }}/{{ .Values.certInitializer.fqi_namespace }}.p12" keystorePass="${KEYSTORE_PASSWORD}" />
69
70     <!-- A "Connector" using the shared thread pool-->
71     <!--
72     <Connector executor="tomcatThreadPool"
73                port="8080" protocol="HTTP/1.1"
74                connectionTimeout="20000"
75                redirectPort="8443" />
76     -->
77     <!-- Define a SSL/TLS HTTP/1.1 Connector on port 8443
78          This connector uses the NIO implementation. The default
79          SSLImplementation will depend on the presence of the APR/native
80          library and the useOpenSSL attribute of the
81          AprLifecycleListener.
82          Either JSSE or OpenSSL style configuration may be used regardless of
83          the SSLImplementation selected. JSSE style configuration is used below.
84     -->
85     <!--
86     <Connector port="8443" protocol="org.apache.coyote.http11.Http11NioProtocol"
87                maxThreads="150" SSLEnabled="true">
88         <SSLHostConfig>
89             <Certificate certificateKeystoreFile="conf/localhost-rsa.jks"
90                          type="RSA" />
91         </SSLHostConfig>
92     </Connector>
93     -->
94     <!-- Define a SSL/TLS HTTP/1.1 Connector on port 8443 with HTTP/2
95          This connector uses the APR/native implementation which always uses
96          OpenSSL for TLS.
97          Either JSSE or OpenSSL style configuration may be used. OpenSSL style
98          configuration is used below.
99     -->
100     <!--
101     <Connector port="8443" protocol="org.apache.coyote.http11.Http11AprProtocol"
102                maxThreads="150" SSLEnabled="true" >
103         <UpgradeProtocol className="org.apache.coyote.http2.Http2Protocol" />
104         <SSLHostConfig>
105             <Certificate certificateKeyFile="conf/localhost-rsa-key.pem"
106                          certificateFile="conf/localhost-rsa-cert.pem"
107                          certificateChainFile="conf/localhost-rsa-chain.pem"
108                          type="RSA" />
109         </SSLHostConfig>
110     </Connector>
111     -->
112
113     <!-- Define an AJP 1.3 Connector on port 8009 -->
114     <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />
115
116
117     <!-- An Engine represents the entry point (within Catalina) that processes
118          every request.  The Engine implementation for Tomcat stand alone
119          analyzes the HTTP headers included with the request, and passes them
120          on to the appropriate Host (virtual host).
121          Documentation at /docs/config/engine.html -->
122
123     <!-- You should set jvmRoute to support load-balancing via AJP ie :
124     <Engine name="Catalina" defaultHost="localhost" jvmRoute="jvm1">
125     -->
126     <Engine name="Catalina" defaultHost="localhost">
127
128       <!--For clustering, please take a look at documentation at:
129           /docs/cluster-howto.html  (simple how to)
130           /docs/config/cluster.html (reference documentation) -->
131       <!--
132       <Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"/>
133       -->
134
135       <!-- Use the LockOutRealm to prevent attempts to guess user passwords
136            via a brute-force attack -->
137       <Realm className="org.apache.catalina.realm.LockOutRealm">
138         <!-- This Realm uses the UserDatabase configured in the global JNDI
139              resources under the key "UserDatabase".  Any edits
140              that are performed against this UserDatabase are immediately
141              available for use by the Realm.  -->
142         <Realm className="org.apache.catalina.realm.UserDatabaseRealm" resourceName="UserDatabase" />
143       </Realm>
144
145       <Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true">
146
147         <!-- SingleSignOn valve, share authentication between web applications
148              Documentation at: /docs/config/valve.html -->
149         <!--
150         <Valve className="org.apache.catalina.authenticator.SingleSignOn" />
151         -->
152
153         <!-- Access log processes all example.
154              Documentation at: /docs/config/valve.html
155              Note: The pattern used is equivalent to using pattern="common" -->
156         <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" prefix="localhost_access_log" suffix=".txt" pattern="%h %l %u %t &quot;%r&quot; %s %b" />
157
158       </Host>
159     </Engine>
160   </Service>
161 </Server>