| 1 |
<?xml version="1.0" encoding="UTF-8"?> |
| 2 |
<!-- |
| 3 |
Copyright 2004-2023 H2 Group. Multiple-Licensed under the MPL 2.0, |
| 4 |
and the EPL 1.0 (https://h2database.com/html/license.html). |
| 5 |
Initial Developer: H2 Group |
| 6 |
--> |
| 7 |
<web-app xmlns="http://java.sun.com/xml/ns/javaee" |
| 8 |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 9 |
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" |
| 10 |
version="2.5"> |
| 11 |
|
| 12 |
<display-name>H2 Console Web Application</display-name> |
| 13 |
<description> |
| 14 |
A web application that includes the H2 Console servlet. |
| 15 |
</description> |
| 16 |
|
| 17 |
<servlet> |
| 18 |
<servlet-name>H2Console</servlet-name> |
| 19 |
<servlet-class>org.h2.server.web.WebServlet</servlet-class> |
| 20 |
<!-- |
| 21 |
<init-param> |
| 22 |
<param-name>webAllowOthers</param-name> |
| 23 |
<param-value></param-value> |
| 24 |
</init-param> |
| 25 |
<init-param> |
| 26 |
<param-name>trace</param-name> |
| 27 |
<param-value></param-value> |
| 28 |
</init-param> |
| 29 |
--> |
| 30 |
<load-on-startup>1</load-on-startup> |
| 31 |
</servlet> |
| 32 |
|
| 33 |
<servlet-mapping> |
| 34 |
<servlet-name>H2Console</servlet-name> |
| 35 |
<url-pattern>/console/*</url-pattern> |
| 36 |
</servlet-mapping> |
| 37 |
|
| 38 |
<welcome-file-list> |
| 39 |
<welcome-file>/console.html</welcome-file> |
| 40 |
</welcome-file-list> |
| 41 |
|
| 42 |
<!-- Enable the following section when you want basic authentication --> |
| 43 |
|
| 44 |
<!-- |
| 45 |
|
| 46 |
<security-constraint> |
| 47 |
<web-resource-collection> |
| 48 |
<web-resource-name>H2 Console</web-resource-name> |
| 49 |
<url-pattern>/console/*</url-pattern> |
| 50 |
</web-resource-collection> |
| 51 |
<auth-constraint> |
| 52 |
<role-name>admin</role-name> |
| 53 |
</auth-constraint> |
| 54 |
</security-constraint> |
| 55 |
|
| 56 |
<login-config> |
| 57 |
<auth-method>BASIC</auth-method> |
| 58 |
<realm-name>H2 Console</realm-name> |
| 59 |
</login-config> |
| 60 |
|
| 61 |
<security-role> |
| 62 |
<role-name>admin</role-name> |
| 63 |
</security-role> |
| 64 |
|
| 65 |
--> |
| 66 |
|
| 67 |
</web-app> |