<?xml version='1.0' encoding='utf-8'?>
<!--

    Copyright 2021 OPS4J.

    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

        http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.

-->
<!--
	Pax Web 8 handles top-level catalinaHome and catalinaBase attributes and converts them to File
	values for org.apache.catalina.core.StandardServer
-->
<Server port="8005" shutdown="SHUTDOWN">
	<Service name="Catalina">
		<!-- See https://tomcat.apache.org/tomcat-9.0-doc/config/http.html#Standard_Implementation for gzip encoding configuration -->
		<Connector port="8181" protocol="HTTP/1.1" redirectPort="8443" compression="off" />

		<!-- see https://tomcat.apache.org/tomcat-9.0-doc/config/http.html#SSL_Support_-_SSLHostConfig -->
		<!--
		<Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true" secure="true">
			<SSLHostConfig protocols="+TLSv1.2" honorCipherOrder="true"
					truststoreFile="../../etc/security/server.jks"
					truststorePassword="passw0rd"
					certificateVerification="optional">
				<Certificate
						certificateKeystoreFile="../../etc/security/server.jks"
						certificateKeystorePassword="passw0rd"
						certificateKeyAlias="server"
				/>
			</SSLHostConfig>
		</Connector>
		-->

		<Engine name="Catalina" defaultHost="localhost">
			<!--
			<Realm className="org.apache.catalina.realm.MemoryRealm" pathname="target/test-classes/tomcat-users.xml" />
			-->
		</Engine>
	</Service>
</Server>
