[UUI] Make UUI SM compatible
[oom.git] / kubernetes / uui / resources / config / server.xml
index 275fcd8..9bb10fe 100644 (file)
@@ -24,7 +24,7 @@
   <Listener className="org.apache.catalina.security.SecurityListener" />
   -->
   <!--APR library loader. Documentation at /docs/apr.html -->
-  <Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" />
+  <Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="{{ (eq "true" (include "common.needTLS" .)) | ternary "on" "off" }}" />
   <!-- Prevent memory leaks due to use of particular java/javax APIs-->
   <Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener" />
   <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
          APR (HTTP/AJP) Connector: /docs/apr.html
          Define a non-SSL/TLS HTTP/1.1 Connector on port 8080
     -->
+    {{ if (include "common.needTLS" .) }}
     <Connector port="8080" protocol="HTTP/1.1"
                connectionTimeout="20000"
                redirectPort="8443" />
 
     <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}" />
+    {{ else }}
+    <Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" />
+    {{ end }}
 
     <!-- A "Connector" using the shared thread pool-->
     <!--
     -->
 
     <!-- Define an AJP 1.3 Connector on port 8009 -->
+    {{ if (include "common.needTLS" .) }}
     <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />
+    {{ else }}
+    <Connector port="8009" protocol="AJP/1.3" secretRequired="false" />
+    {{ end }}
 
 
     <!-- An Engine represents the entry point (within Catalina) that processes