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

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

Susimail, Console, Jetty:

  • Adjust multipart size limits
  • Better handling of errors when multipart limits are exceeded
  • Fix multipart config for /configplugins
  • Test for total size limit in susimail
  • 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  <servlet-mapping>
27    <servlet-name>SusiMail</servlet-name>
28    <url-pattern>/susimail</url-pattern>
29  </servlet-mapping>
30  <session-config>
31    <session-timeout>1440</session-timeout>
32    <cookie-config>
33      <http-only>true</http-only>
34    </cookie-config>
35  </session-config>
36  <!-- tomcat (untested) -->
37  <context-param>
38    <param-name>crossContext</param-name>
39    <param-value>false</param-value>
40  </context-param>
41  <!-- jetty
42    -  This is required so the same session ID isn't shared with
43    -  the base context. When shared, it's expired after 30 minutes
44    -  in the base context which invalidates it in our context too.
45    -->
46  <context-param>
47    <param-name>org.eclipse.jetty.servlet.SessionCookie</param-name>
48    <param-value>SUSIMAILJSESSIONID</param-value>
49  </context-param>
50
51<!--
52     Jetty 6 mulipart form handling
53     See http://docs.codehaus.org/display/JETTY/File+Upload+in+jetty6
54     and RequestWrapper.java.
55     Unused because it doesn't support content-type until Jetty 8.
56
57    <filter>
58        <filter-name>fileuploadfilter</filter-name>
59        <filter-class>org.mortbay.servlet.MultiPartFilter</filter-class>
60        <init-param>
61            <param-name>deleteFiles</param-name>
62            <param-value>true</param-value>
63        </init-param>
64    </filter>
65
66    <filter-mapping>
67        <filter-name>fileuploadfilter</filter-name>
68        <url-pattern>/susimail</url-pattern>
69    </filter-mapping>
70-->
71
72</web-app>
Note: See TracBrowser for help on using the repository browser.