forked from m-reza-rahman/jakartaee-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathserver.xml
More file actions
60 lines (48 loc) · 2.28 KB
/
server.xml
File metadata and controls
60 lines (48 loc) · 2.28 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
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
<server description="defaultServer">
<!-- Enable features -->
<featureManager>
<feature>javaee-8.0</feature>
<feature>sessionDatabase-1.0</feature>
</featureManager>
<!-- This template enables security. To get the full use of all the capabilities,
a keystore and user registry are required. -->
<!-- For the keystore, default keys are generated and stored in a keystore.
To provide the keystore password, generate an encoded password using bin/securityUtility
encode and add it below in the password attribute of the keyStore element.
Then uncomment the keyStore element. -->
<!-- <keyStore password=""/> -->
<!--For a user registry configuration, configure your user registry. For
example, configure a basic user registry using the basicRegistry element.
Specify your own user name below in the name attribute of the user element.
For the password, generate an encoded password using bin/securityUtility
encode and add it in the password attribute of the user element. Then uncomment
the user element. -->
<basicRegistry id="basic" realm="BasicRealm">
<user name="admin" password="admin123" />
</basicRegistry>
<keyStore id="defaultKeyStore" password="admin123" />
<!-- To access this server from a remote client add a host attribute to
the following element, e.g. host="*" -->
<httpEndpoint host="*" httpPort="9080" httpsPort="9443"
id="defaultHttpEndpoint" />
<httpSessionDatabase id="SessionDB"
dataSourceRef="JavaEECafeDB" />
<httpSession storageRef="SessionDB" />
<!-- Automatically expand WAR files and EAR files -->
<applicationManager autoExpand="true" />
<dataSource id="JavaEECafeDB"
jdbcDriverRef="postgresql-driver" jndiName="jdbc/JavaEECafeDB"
transactional="true" type="javax.sql.ConnectionPoolDataSource">
<properties databaseName="postgres"
password="${env.POSTGRES_PASSWORD}" portNumber="5432"
serverName="postgres" user="${env.POSTGRES_USER}" />
</dataSource>
<jdbcDriver id="postgresql-driver"
javax.sql.ConnectionPoolDataSource="org.postgresql.ds.PGConnectionPoolDataSource"
javax.sql.XADataSource="org.postgresql.xa.PGXADataSource"
libraryRef="postgresql-library" />
<library id="postgresql-library">
<fileset dir="${shared.resource.dir}" id="PostgreSQLFileset"
includes="postgresql-42.2.4.jar" />
</library>
</server>