-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
76 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
charts/opensrp-server-web/templates/config/opensrp/_server.xml.tpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
|
||
{{- define "config.opensrp.server.xml" }} | ||
<?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" /> | ||
</GlobalNamingResources> | ||
<Service name="Catalina"> | ||
<Connector port="8080" protocol="HTTP/1.1" | ||
connectionTimeout="20000" | ||
redirectPort="8443" /> | ||
<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"> | ||
|
||
{{ include "opensrp-server-web.tomcatHostValves" . }} | ||
|
||
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" | ||
prefix="localhost_access_log" suffix=".txt" | ||
pattern="%h %l %u %t "%r" %s %b" /> | ||
|
||
</Host> | ||
</Engine> | ||
</Service> | ||
</Server> | ||
|
||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters