Author: pawelz                       Date: Mon Jan 26 08:20:24 2009 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- initial

---- Files affected:
SOURCES:
   hudson-web.xml (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/hudson-web.xml
diff -u /dev/null SOURCES/hudson-web.xml:1.1
--- /dev/null   Mon Jan 26 09:20:25 2009
+++ SOURCES/hudson-web.xml      Mon Jan 26 09:20:18 2009
@@ -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>
================================================================
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to