Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="ISO-8859-1"?>
- <!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure.dtd">
- <!-- ==================================================================
- Configure and deploy the jenkins web application in $(jetty.home)/webapps/jenkins
- Note. If this file did not exist or used a context path other that /jenkins
- then the default configuration of jetty.xml would discover the jenkins
- webapplication with a WebAppDeployer. By specifying a context in this
- directory, additional configuration may be specified and hot deployments
- detected.
- ===================================================================== -->
- <Configure class="org.eclipse.jetty.webapp.WebAppContext">
- <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
- <!-- Required minimal context configuration : -->
- <!-- + contextPath -->
- <!-- + war OR resourceBase -->
- <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
- <Set name="contextPath">/jenkins</Set>
- <Set name="war"><SystemProperty name="jetty.home" default="."/>/webapps/jenkins.war</Set>
- <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
- <!-- Optional context configuration -->
- <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
- <Set name="extractWAR">true</Set>
- <Set name="copyWebDir">false</Set>
- <Set name="defaultsDescriptor"><SystemProperty name="jetty.home" default="."/>/etc/webdefault.xml</Set>
- <!--<Set name="overrideDescriptor"><SystemProperty name="jetty.home" default="."/>/webapps/jenkins.d/override-web.xml</Set>-->
- <Get name="securityHandler">
- <Set name="loginService">
- <New class="org.eclipse.jetty.security.HashLoginService">
- <Set name="name">Jenkins Realm</Set>
- <Set name="config"><SystemProperty name="jetty.home" default="."/>/etc/realm.properties</Set>
- <!-- To enable reload of realm when properties change, uncomment the following lines -->
- <!-- changing refreshInterval (in seconds) as desired -->
- <!--
- <Set name="refreshInterval">5</Set>
- <Call name="start"></Call>
- -->
- </New>
- </Set>
- <Set name="authenticator">
- <New class="org.eclipse.jetty.security.authentication.FormAuthenticator">
- <Set name="alwaysSaveUri">true</Set>
- </New>
- </Set>
- <Set name="checkWelcomeFiles">true</Set>
- </Get>
- <!-- Add context specific logger
- <Set name="handler">
- <New id="RequestLog" class="org.eclipse.jetty.server.handler.RequestLogHandler">
- <Set name="requestLog">
- <New id="RequestLogImpl" class="org.eclipse.jetty.server.NCSARequestLog">
- <Set name="filename"><Property name="jetty.logs" default="./logs"/>/jenkins-yyyy_mm_dd.request.log</Set>
- <Set name="filenameDateFormat">yyyy_MM_dd</Set>
- <Set name="append">true</Set>
- <Set name="LogTimeZone">GMT</Set>
- </New>
- </Set>
- </New>
- </Set>
- -->
- </Configure>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement