-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcontext.xml.example
46 lines (35 loc) · 2.23 KB
/
context.xml.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?xml version="1.0" encoding="UTF-8"?>
<!-- This is an example of META-INF/context.xml - a Tomcat-specific shorthand to specify JNDI resources during development.
See http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html
-->
<!-- Copy this file (context.xml.example) to context.xml and replace YOUR-XXX strings with suitable values.
(Note that context.xml is set to be ignored by git, so placing passwords there is safe.)
Make sure that /usr/share/tomcat7/lib contains a postgres JDBC driver jar.
Now, dropping treebase-web.war to $CATALINA_HOME/webapps of a vanilla Tomcat should automatically create
config file $CATALINA_HOME/conf/Catalina/localhost/treebase-web.xml,
which instructs Tomcat to provide a JNDI DataSource.
FYI: If this config is created or modified by hand, it is not affected by WAR (re-)deployments.
(I.e., server-side configuration supercedes WAR-side.)
-->
<Context reloadable="true">
<Resource name="jdbc/TreebaseDB" auth="Container"
type="javax.sql.DataSource"
description="The JNDI DataSource for the Treebase postgres instance."
driverClassName="org.postgresql.Driver"
url="jdbc:postgresql://YOUR-URL"
username="YOUR-NAME" password="YOUR-PASS"
maxActive="20" maxIdle="10" maxWait="-1"
/>
<Environment name="tb2/MesquiteFolder" value="/PATH/TO/YOUR/mesquite-2.01.tb"
type="java.lang.String" override="false"
description="Absolute path to the directory where headless Mesquite is unpacked on the host system."/>
<Environment name="tb2/SiteUrl" value="http://YOUR-HOST/treebase-web/"
type="java.lang.String" override="false"
description="The base URL from which this Treebase instance is served."/>
<Environment name="tb2/PurlBase" value="http://purl.org/YOUR/PURL/DOMAIN/phylows/"
type="java.lang.String" override="false"
description="The base URL of a PURL service that redirects to this Treebase instance."/>
<Environment name="tb2/SmtpHost" value="smtp.YOUR.SERVER.ORG"
type="java.lang.String" override="false"
description="Host name of an SMTP server that your instance can use without authentication."/>
</Context>