]> git.pld-linux.org Git - packages/jenkins.git/commitdiff
- initial
authorpawelz <pawelz@pld-linux.org>
Mon, 26 Jan 2009 08:20:18 +0000 (08:20 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    web.xml -> 1.1

web.xml [new file with mode: 0644]

diff --git a/web.xml b/web.xml
new file mode 100644 (file)
index 0000000..8255c0e
--- /dev/null
+++ b/web.xml
@@ -0,0 +1,117 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
+         version="2.4">
+  <display-name>Hudson</display-name>
+  <description>Build management system</description>
+
+  <servlet>
+    <servlet-name>Stapler</servlet-name>
+    <servlet-class>org.kohsuke.stapler.Stapler</servlet-class>
+    <init-param>
+      <param-name>default-encodings</param-name>
+      <param-value>text/html=UTF-8</param-value>
+    </init-param>
+  </servlet>
+
+  <servlet-mapping>
+    <servlet-name>Stapler</servlet-name>
+    <url-pattern>/</url-pattern>
+  </servlet-mapping>
+
+  <filter>
+    <filter-name>authentication-filter</filter-name>
+    <filter-class>hudson.security.HudsonFilter</filter-class>
+  </filter>
+
+  <!--
+       The Headers filter allows us to to override headers sent by the container
+       that may be in conflict with what we want.  For example, Tomcat will set
+       Cache-Control: no-cache for any files behind the security-constraint
+       below.  So if Hudson is on a public server, and you want to only allow
+       authorized users to access it, you may want to pay attention to this.
+       
+       See: http://www.nabble.com/No-browser-caching-with-Hudson- -tf4601857.html
+  
+  <filter>
+    <filter-name>change-headers-filter</filter-name>
+    <filter-class>hudson.ResponseHeaderFilter</filter-class>
+    <!- The value listed here is for 24 hours.  Increase or decrease as you see 
+    fit.  Value is in seconds. Make sure to keep the public option ->
+    <init-param>
+      <param-name>Cache-Control</param-name>
+      <param-value>max-age=86400, public</param-value>
+    </init-param>
+    <!- It turns out that Tomcat just doesn't want to let
+    go of its cache option.  If you override Cache-Control,
+    it starts to send Pragma: no-cache as a backup.
+     ->
+    <init-param>
+      <param-name>Pragma</param-name>
+      <param-value>public</param-value>
+    </init-param>
+  </filter>
+  -->
+  
+  <filter-mapping>
+    <filter-name>authentication-filter</filter-name>
+    <url-pattern>/*</url-pattern>
+  </filter-mapping>
+
+  <filter>
+    <filter-name>plugins-filter</filter-name>
+    <filter-class>hudson.util.PluginServletFilter</filter-class>
+  </filter>
+  <filter-mapping>
+    <filter-name>plugins-filter</filter-name>
+    <url-pattern>/*</url-pattern>
+  </filter-mapping>
+
+  <!-- Uncomment this if you are protecting your entire hudson setup
+       from public view.  See note above about the filter.
+  <filter-mapping>
+    <filter-name>change-headers-filter</filter-name>
+    <!- This path should match the value of:
+               /security-constraint/web-resource-collection/url-pattern
+     ->
+    <url-pattern>/*</url-pattern>
+  </filter-mapping>
+  -->
+  
+  <listener>
+    <listener-class>hudson.WebAppMain</listener-class>
+  </listener>
+
+  <security-role>
+    <!-- admins can add/remove/configure projects -->
+    <role-name>admin</role-name>
+  </security-role>
+
+  <security-constraint>
+    <web-resource-collection>
+      <web-resource-name>Hudson</web-resource-name>
+      <url-pattern>/loginEntry</url-pattern>
+      <!--http-method>GET</http-method-->
+    </web-resource-collection>
+    <auth-constraint>
+      <role-name>*</role-name>
+    </auth-constraint>
+  </security-constraint>
+
+  <login-config>
+    <auth-method>FORM</auth-method>
+    <form-login-config>
+      <form-login-page>/login</form-login-page>
+      <form-error-page>/loginError</form-error-page>
+    </form-login-config>
+  </login-config>
+
+
+  <!-- if specified, this value is used as the Hudson home directory -->
+  <env-entry>
+    <env-entry-name>HUDSON_HOME</env-entry-name>
+    <env-entry-type>java.lang.String</env-entry-type>
+    <env-entry-value>/var/lib/hudson</env-entry-value>
+  </env-entry>
+</web-app>
This page took 0.074937 seconds and 4 git commands to generate.