aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-server/src/dev/web.xml
blob: d6ec5654caf21fee0d97b173dc6fa3b03771704d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xmlns="http://java.sun.com/xml/ns/javaee"
         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
         id="SonarQube"
         version="3.0"
         metadata-complete="true">
  <display-name>SonarQube</display-name>

  <context-param>
    <param-name>public.root</param-name>
    <param-value>/</param-value>
  </context-param>

  <context-param>
    <param-name>rails.env</param-name>
    <param-value>development</param-value>
  </context-param>
  <context-param>
    <param-name>jruby.min.runtimes</param-name>
    <param-value>1</param-value>
  </context-param>
  <context-param>
    <param-name>jruby.max.runtimes</param-name>
    <param-value>3</param-value>
  </context-param>
  <context-param>
    <param-name>jruby.compat.version</param-name>
    <param-value>1.8</param-value>
  </context-param>
  <context-param>
    <param-name>jruby.rack.logging</param-name>
    <param-value>slf4j</param-value>
  </context-param>

  <filter>
    <filter-name>ServletFilters</filter-name>
    <filter-class>org.sonar.server.platform.MasterServletFilter</filter-class>
  </filter>
  <filter>
    <filter-name>DatabaseSessionFilter</filter-name>
    <filter-class>org.sonar.server.ui.DatabaseSessionFilter</filter-class>
  </filter>
  <filter>
    <filter-name>UserSessionFilter</filter-name>
    <filter-class>org.sonar.server.user.UserSessionFilter</filter-class>
  </filter>
  <filter>
    <filter-name>RackFilter</filter-name>
    <filter-class>org.jruby.rack.RackFilter</filter-class>
  </filter>

  <filter-mapping>
    <filter-name>DatabaseSessionFilter</filter-name>
    <url-pattern>/*</url-pattern>
  </filter-mapping>
  <filter-mapping>
    <filter-name>UserSessionFilter</filter-name>
    <url-pattern>/*</url-pattern>
  </filter-mapping>
  <filter-mapping>
    <filter-name>ServletFilters</filter-name>
    <url-pattern>/*</url-pattern>
  </filter-mapping>
  <filter-mapping>
    <filter-name>RackFilter</filter-name>
    <url-pattern>/*</url-pattern>
  </filter-mapping>

  <servlet>
    <servlet-name>chart</servlet-name>
    <servlet-class>org.sonar.server.charts.ChartsServlet</servlet-class>
  </servlet>
  <servlet>
    <servlet-name>gchart</servlet-name>
    <servlet-class>org.jfree.eastwood.ChartServlet</servlet-class>
  </servlet>
  <servlet>
    <servlet-name>static</servlet-name>
    <servlet-class>org.sonar.server.plugins.StaticResourcesServlet</servlet-class>
  </servlet>
  <servlet>
    <servlet-name>batch</servlet-name>
    <servlet-class>org.sonar.server.plugins.BatchResourcesServlet</servlet-class>
  </servlet>

  <servlet-mapping>
    <servlet-name>chart</servlet-name>
    <url-pattern>/chart</url-pattern>
  </servlet-mapping>
  <servlet-mapping>
    <servlet-name>gchart</servlet-name>
    <url-pattern>/gchart</url-pattern>
  </servlet-mapping>
  <servlet-mapping>
    <servlet-name>static</servlet-name>
    <url-pattern>/static/*</url-pattern>
  </servlet-mapping>
  <servlet-mapping>
    <servlet-name>batch</servlet-name>
    <url-pattern>/batch/*</url-pattern>
  </servlet-mapping>

  <session-config>
    <!-- in minutes -->
    <session-timeout>20</session-timeout>
    <cookie-config>
      <http-only>true</http-only>
    </cookie-config>
  </session-config>

  <listener>
    <listener-class>org.sonar.server.platform.PlatformLifecycleListener</listener-class>
  </listener>
  <listener>
    <listener-class>org.jruby.rack.rails.RailsServletContextListener</listener-class>
  </listener>

</web-app>