source: apps/susimail/src/WEB-INF/web.xml @ 2aceca5

Last change on this file since 2aceca5 was 2aceca5, checked in by zzz <zzz@…>, 2 years ago

Console: Add error handler to all webapps (ticket #2155)
Fix up default servlet handling in i2ptunnel and susidns

  • Property mode set to 100644
File size: 2.4 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE web-app
3    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
4    "http://java.sun.com/j2ee/dtds/web-app_2.2.dtd">
5<web-app>
6    <filter>
7        <filter-name>XSSFilter</filter-name>
8        <filter-class>net.i2p.servlet.filters.XSSFilter</filter-class>
9    </filter>
10    <filter-mapping>
11        <filter-name>XSSFilter</filter-name>
12        <url-pattern>/*</url-pattern>
13    </filter-mapping>
14
15  <display-name>susimail</display-name>
16  <servlet>
17    <servlet-name>SusiMail</servlet-name>
18    <servlet-class>i2p.susi.webmail.WebMail</servlet-class>
19    <multipart-config>
20      <!-- 23 MB. See SMTPClient for discussion -->
21      <max-file-size>24117248</max-file-size>
22      <max-request-size>24117248</max-request-size>
23      <file-size-threshold>131072</file-size-threshold>
24    </multipart-config>
25  </servlet>
26
27  <servlet>
28    <servlet-name>net.i2p.servlet.ErrorServlet</servlet-name>
29    <servlet-class>net.i2p.servlet.ErrorServlet</servlet-class>
30    <init-param>
31      <param-name>name</param-name>
32      <param-value>SusiMail</param-value>
33    </init-param>
34  </servlet>
35
36  <servlet-mapping>
37    <servlet-name>SusiMail</servlet-name>
38    <url-pattern>/susimail</url-pattern>
39  </servlet-mapping>
40
41  <servlet-mapping>
42    <servlet-name>net.i2p.servlet.ErrorServlet</servlet-name>
43    <url-pattern>/error</url-pattern>
44  </servlet-mapping>
45
46  <session-config>
47    <session-timeout>1440</session-timeout>
48    <cookie-config>
49      <http-only>true</http-only>
50    </cookie-config>
51  </session-config>
52  <!-- tomcat (untested) -->
53  <context-param>
54    <param-name>crossContext</param-name>
55    <param-value>false</param-value>
56  </context-param>
57  <!-- jetty
58    -  This is required so the same session ID isn't shared with
59    -  the base context. When shared, it's expired after 30 minutes
60    -  in the base context which invalidates it in our context too.
61    -->
62  <context-param>
63    <param-name>org.eclipse.jetty.servlet.SessionCookie</param-name>
64    <param-value>SUSIMAILJSESSIONID</param-value>
65  </context-param>
66
67  <error-page>
68    <error-code>403</error-code>
69    <location>/error</location>
70  </error-page>
71  <error-page>
72    <error-code>404</error-code>
73    <location>/error</location>
74  </error-page>
75  <error-page>
76    <error-code>500</error-code>
77    <location>/error</location>
78  </error-page>
79
80</web-app>
Note: See TracBrowser for help on using the repository browser.