forked from freeciv/freeciv-web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathweb.context.tmpl
17 lines (15 loc) · 876 Bytes
/
web.context.tmpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<!-- LOCATION:freeciv-web/src/main/webapp/META-INF/context.xml
-->
<Context>
<!-- Does Freeciv-web fail with a complaint about how your time zone is
"unrecognized or represents more than one time zone"? Change the "url"
attribute so it sets useLegacyDatetimeCode to false and serverTimezone to
your time zone.
Example: the computer is in Norway. Set the "url" attribute to
jdbc:mysql://localhost:3306/freeciv_web?useLegacyDatetimeCode=false&serverTimezone=Europe/Oslo
(inside quatation marks) and rebuild. -->
<Resource name="jdbc/freeciv_mysql" auth="Container" type="javax.sql.DataSource"
maxTotal="100" maxIdle="30" maxWaitMillis="10000"
username="#DB_USER#" password="#DB_PASSWORD#" driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://localhost:3306/#DB_NAME#?useSSL=false"/>
</Context>