-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontext.xml
More file actions
33 lines (32 loc) · 1.14 KB
/
context.xml
File metadata and controls
33 lines (32 loc) · 1.14 KB
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
<?xml version="1.0" encoding="UTF-8"?>
<Context>
<Valve
className="org.apache.catalina.authenticator.FormAuthenticator"
disableProxyCaching="false"
characterEncoding="UTF-8" />
<Resource
name="jdbc/forum"
auth="Container"
type="javax.sql.DataSource"
initialSize="10"
maxTotal="100"
maxIdle="30"
maxWaitMillis="10000"
username="example_username"
password="example_password"
driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://localhost:3306/forum?serverTimezone=UTC" />
<Realm
className="org.apache.catalina.realm.DataSourceRealm"
dataSourceName="jdbc/forum"
userTable="user"
userNameCol="username"
userCredCol="password"
userRoleTable="user_role"
roleNameCol="role_name"
localDataSource="true">
<CredentialHandler className="org.apache.catalina.realm.MessageDigestCredentialHandler"
algorithm="sha-256" encoding="UTF-8"
/>
</Realm>
</Context>