Advertisement
Guest User

Untitled

a guest
Dec 7th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MXML 3.17 KB | None | 0 0
  1. <?xml version="1.0"  encoding="ISO-8859-1"?>
  2. <!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure.dtd">
  3.  
  4. <!-- ==================================================================
  5. Configure and deploy the jenkins web application in $(jetty.home)/webapps/jenkins
  6. Note. If this file did not exist or used a context path other that /jenkins
  7. then the default configuration of jetty.xml would discover the jenkins
  8. webapplication with a WebAppDeployer.  By specifying a context in this
  9. directory, additional configuration may be specified and hot deployments
  10. detected.
  11. ===================================================================== -->
  12.  
  13. <Configure class="org.eclipse.jetty.webapp.WebAppContext">
  14.  
  15.  
  16.   <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
  17.   <!-- Required minimal context configuration :                        -->
  18.   <!--  + contextPath                                                  -->
  19.   <!--  + war OR resourceBase                                          -->
  20.   <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
  21.   <Set name="contextPath">/jenkins</Set>
  22.   <Set name="war"><SystemProperty name="jetty.home" default="."/>/webapps/jenkins.war</Set>
  23.  
  24.   <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
  25.   <!-- Optional context configuration                                  -->
  26.   <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
  27.   <Set name="extractWAR">true</Set>
  28.   <Set name="copyWebDir">false</Set>
  29.   <Set name="defaultsDescriptor"><SystemProperty name="jetty.home" default="."/>/etc/webdefault.xml</Set>
  30.   <!--<Set name="overrideDescriptor"><SystemProperty name="jetty.home" default="."/>/webapps/jenkins.d/override-web.xml</Set>-->
  31.  
  32.   <Get name="securityHandler">
  33.     <Set name="loginService">
  34.       <New class="org.eclipse.jetty.security.HashLoginService">
  35.         <Set name="name">Jenkins Realm</Set>
  36.         <Set name="config"><SystemProperty name="jetty.home" default="."/>/etc/realm.properties</Set>
  37.             <!-- To enable reload of realm when properties change, uncomment the following lines -->
  38.             <!-- changing refreshInterval (in seconds) as desired                                -->
  39.             <!--
  40.            <Set name="refreshInterval">5</Set>
  41.            <Call name="start"></Call>
  42.            -->
  43.       </New>
  44.     </Set>
  45.     <Set name="authenticator">
  46.       <New class="org.eclipse.jetty.security.authentication.FormAuthenticator">
  47.         <Set name="alwaysSaveUri">true</Set>
  48.       </New>
  49.     </Set>
  50.     <Set name="checkWelcomeFiles">true</Set>
  51.   </Get>
  52.  
  53.   <!-- Add context specific logger
  54.  <Set name="handler">
  55.    <New id="RequestLog" class="org.eclipse.jetty.server.handler.RequestLogHandler">
  56.      <Set name="requestLog">
  57.     <New id="RequestLogImpl" class="org.eclipse.jetty.server.NCSARequestLog">
  58.       <Set name="filename"><Property name="jetty.logs" default="./logs"/>/jenkins-yyyy_mm_dd.request.log</Set>
  59.       <Set name="filenameDateFormat">yyyy_MM_dd</Set>
  60.       <Set name="append">true</Set>
  61.       <Set name="LogTimeZone">GMT</Set>
  62.     </New>
  63.      </Set>
  64.    </New>
  65.  </Set>
  66.  -->
  67.  
  68. </Configure>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement