summaryrefslogtreecommitdiffstats
path: root/kubernetes/uui/resources/config/server.xml
diff options
context:
space:
mode:
Diffstat (limited to 'kubernetes/uui/resources/config/server.xml')
-rw-r--r--kubernetes/uui/resources/config/server.xml10
1 files changed, 9 insertions, 1 deletions
diff --git a/kubernetes/uui/resources/config/server.xml b/kubernetes/uui/resources/config/server.xml
index 275fcd8b14..9bb10fee67 100644
--- a/kubernetes/uui/resources/config/server.xml
+++ b/kubernetes/uui/resources/config/server.xml
@@ -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" />
@@ -61,11 +61,15 @@
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-->
<!--
@@ -111,7 +115,11 @@
-->
<!-- 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