<server description="cldr-apps Liberty server">
	<!-- tag::featureManager[] -->
	<featureManager>
		<feature>jsonb-1.0</feature>
		<feature>jaxrs-2.1</feature>
		<feature>jsp-2.3</feature>
		<feature>jdbc-4.3</feature>
		<feature>jndi-1.0</feature>
		<feature>mpOpenAPI-1.1</feature>
		<feature>mpConfig-1.4</feature>
		<feature>localConnector-1.0</feature>
		<feature>concurrent-1.0</feature>
		<feature>mpMetrics-2.0</feature>
		<feature>monitor-1.0</feature>
	</featureManager>
	<!-- end::featureManager[] -->

	<!-- tag::httpEndpoint[] -->
	<httpEndpoint httpPort="9080" id="defaultHttpEndpoint"
		host="*">
		<samesite id="cldr" lax="*" />
	</httpEndpoint>
	<!-- end::httpEndpoint[] -->

	<!-- tag::webApplication[] -->
	<!-- a very simple app (one index.html)
	  which replaces the default server root
	-->
	<webApplication location="cldr-root" contextRoot="/" />
	<!-- end::webApplication[] -->

	<!-- tag::webApplication[] -->
	<webApplication location="cldr-apps.war"
		contextRoot="/cldr-apps" />
	<!-- end::webApplication[] -->

	<!-- TO SET UP: Create a "server.env" file next to this xml (that is, tools/cldr-apps/src/main/liberty/config/server.env)
		with the following:
			MYSQL_USER=surveytool
			MYSQL_PASSWORD=yourpassword
			MYSQL_DB=cldrdb
			MYSQL_HOST=localhost
			MYSQL_PORT=3306
	-->

	<dataSource id="DefaultDataSource"
		jndiName="jdbc/SurveyTool">
		<jdbcDriver libraryRef="jdbcLib" />
		<properties serverTimezone="GMT" serverName="${MYSQL_HOST}" portNumber="${MYSQL_PORT}"
			databaseName="${MYSQL_DB}" user="${MYSQL_USER}"
			password="${MYSQL_PASSWORD}" />
	</dataSource>

	<!-- add the driver jar that was included by copyDependencies in pom.xml -->
	<library id="jdbcLib">
		<fileset dir="jdbc" includes="*.jar" />
	</library>

	<!-- default logging settings
		Can set traceSpecification="org.unicode.cldr.web.DBUtils=fine" here
		or property com.ibm.ws.logging.trace.specification=org.unicode.cldr.web.DBUtils=fine
	 -->
	<logging
		maxFileSize="50"
		maxFiles="10"
	/>

	<!-- Needed to enable JSPs to be at source level 1.8 (at least) -->
	<jspEngine jdkSourceLevel="18" />

	<!-- We will be proxying access to the metrics server, so not an issue here -->
	<mpMetrics authentication="false" />

</server>
