-
Notifications
You must be signed in to change notification settings - Fork 198
/
context.example.xml
69 lines (52 loc) · 3.88 KB
/
context.example.xml
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
<?xml version="1.0" encoding="UTF-8"?>
<!--
This file is an example. You will need to customise it for your own needs, and rename it
to context.xml. In Apache Tomcat it belongs inside a folder called "config".
You can change the mysql driver to postgresql and you will need to replace all the variables
which look like this ${VARIABLE} either at runtime using a script, or by editing this file
directly.
-->
<Context swallowOutput="true">
<Resource name="jdbc/jobsworth"
removeAbandoned="true"
auth="Container" type="javax.sql.DataSource"
maxActive="100" maxIdle="30" maxWait="10000"
username="${DBUSER}" password="${DBPASS}"
driverClassName="com.mysql.jdbc.Driver" batchSize="-1"
url="jdbc:mysql://${DBSERVER}:3306/${DBNAME}?autoReconnect=true&zeroDateTimeBehavior=convertToNull&useUnicode=true&characterEncoding=utf8"
validationQuery="select 1"/>
<!-- The base domain of the running application. The actual URL you use to access the system is the name of the tenant followed by this. So you might have 'company1.acme.com' and 'company2.acme.com' -->
<Parameter name="config.domain" value="acme.com" override="false"/>
<!-- Jobsworth can be branded as something else -->
<Parameter name="config.productName" value="jobsworth" override="false"/>
<!-- SSL is good. But you may want to turn it off while you are first setting this up.
This doesn't cause encryption to be applied, you still need to do that in a load balancer or
in tomcat or Apache httpd. But it will cause jobsworth to redirect the user to https. -->
<Parameter name="config.ssl" value="true" override="false"/>
<!-- A path to a folder on disk where jobsworth will store task attachments -->
<Parameter name="config.storeroot" value="/var/jobsworth/assets" override="false"/>
<!-- What domain will mail from jobsworth come from? -->
<Parameter name="config.email_domain" value="acme.com" override="false"/>
<!-- Some emails like password resets will come from this user name. So in this example, it will be jobsworth@acme.com -->
<Parameter name="config.email_replyto" value="jobsworth" override="false"/>
<!-- The from user name. This is usually the same as the reply-to username -->
<Parameter name="config.email_from" value="jobsworth" override="false"/>
<!-- Something to put at the start of every subject on emails from jobsworth -->
<Parameter name="config.email_prefix" value="'[jobsworth]'" override="false"/>
<!-- SMTP settings -->
<Parameter name="config.smtp_host" value="mail.acme.com" override="false"/>
<Parameter name="config.smtp_port" value="25" override="false"/>
<Parameter name="config.smtp_domain" value="acme.com" override="false"/>
<!-- This value is used for integration with your incoming mail server. Change it! -->
<Parameter name="config.secret" value="changeThisValueToSomethingRandom" override="false"/>
<!-- Used by devise to generate tokens for user login and password resets.
It is really really important you change this to something random. -->
<Parameter name="config.secret_key" value="f8892f2aebc7b250a31b9678eee0c3a784bbb9f5d5384884d0d2204dde2d446823e15fcbeeb3ce526a407956ca8ff6543367e67386b075571a7277f54a73a5f9" override="false"/>
<!-- Email notification of errors.
Hopefully you never get one of these, but jobsworth will complain if something goes wrong. -->
<Parameter name="config.error_email_prefix" value="'[jobsworth error]'" override="false"/>
<Parameter name="config.error_sender_address" value="jobsworth@acme.com" override="false"/>
<Parameter name="config.error_exception_recipients" value="['support@example.com','sysadmin@example.com']" override="false"/>
<!-- Jobsworth cache store file path. Lots of files will be written here so make it a fast disk. -->
<Parameter name="config.cache_path" value="/var/jobsworth/cache" override="false"/>
</Context>