<?xml version='1.0' encoding='utf-8'?>
<Server port="8005" shutdown="SHUTDOWN">
	
<Listener className="org.apache.catalina.startup.VersionLoggerListener" />  
<Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" />
<Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener" />
<Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
<Listener className="org.apache.catalina.core.ThreadLocalLeakPreventionListener" />

<GlobalNamingResources>
<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"
/>

<Resource 
type="javax.sql.DataSource"
name="jdbc/fineract_tenants"
factory="org.apache.tomcat.jdbc.pool.DataSourceFactory"
driverClassName="com.mysql.cj.jdbc.Driver"
url="jdbc:mysql://localhost:3306/fineract_tenants"
username="root"
password="mysql"
initialSize="3"
maxActive="10"
maxIdle="6"
minIdle="3"
validationQuery="SELECT 1"
testOnBorrow="true"
testOnReturn="true"
testWhileIdle="true"
timeBetweenEvictionRunsMillis="30000"
minEvictableIdleTimeMillis="60000"
logAbandoned="true"
suspectTimeout="60"
/>
</GlobalNamingResources>

<Service name="Catalina">
<Connector port="8443" 
protocol="org.apache.coyote.http11.Http11NioProtocol"
maxThreads="200" 
scheme="https"
secure="true" 
SSLEnabled="true"
keystoreFile="C:/Users/lenovo/.keystore"
keystorePass="mysqll"
clientAuth="false" 
sslProtocol="TLS"
URIEncoding="UTF-8"
compression="force"/>

<Connector 
port="7080" 
protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8445" 
/>

<Engine name="Catalina" defaultHost="localhost">
<Realm className="org.apache.catalina.realm.LockOutRealm">

<Realm className="org.apache.catalina.realm.UserDatabaseRealm" resourceName="UserDatabase"/>
</Realm>

<Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true">

<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" 
/>

</Host>
</Engine>
</Service>
</Server>
