Advertisement
dfarrell07

7.0.0-0.1.20170824rel1942_jetty_cfg

Aug 26th, 2017
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.43 KB | None | 0 0
  1. <?xml version="1.0"?>
  2. <!--
  3. Licensed to the Apache Software Foundation (ASF) under one
  4. or more contributor license agreements. See the NOTICE file
  5. distributed with this work for additional information
  6. regarding copyright ownership. The ASF licenses this file
  7. to you under the Apache License, Version 2.0 (the
  8. "License"); you may not use this file except in compliance
  9. with the License. You may obtain a copy of the License at
  10.  
  11. http://www.apache.org/licenses/LICENSE-2.0
  12.  
  13. Unless required by applicable law or agreed to in writing,
  14. software distributed under the License is distributed on an
  15. "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  16. KIND, either express or implied. See the License for the
  17. specific language governing permissions and limitations
  18. under the License.
  19. -->
  20. <!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//
  21. DTD Configure//EN" "http://jetty.mortbay.org/configure.dtd">
  22.  
  23. <Configure id="Server" class="org.eclipse.jetty.server.Server">
  24.  
  25. <!-- =========================================================== -->
  26. <!-- Set connectors -->
  27. <!-- =========================================================== -->
  28. <!-- One of each type! -->
  29. <!-- =========================================================== -->
  30.  
  31. <!-- Use this connector for many frequently idle connections and for
  32. threadless continuations. -->
  33. <New id="http-default" class="org.eclipse.jetty.server.HttpConfiguration">
  34. <Set name="secureScheme">https</Set>
  35. <Set name="securePort">
  36. <Property name="jetty.secure.port" default="8543" />
  37. </Set>
  38. <Set name="outputBufferSize">32768</Set>
  39. <Set name="requestHeaderSize">8192</Set>
  40. <Set name="responseHeaderSize">8192</Set>
  41.  
  42. <!-- Default security setting: do not leak our version -->
  43. <Set name="sendServerVersion">false</Set>
  44.  
  45. <Set name="sendDateHeader">false</Set>
  46. <Set name="headerCacheSize">512</Set>
  47. </New>
  48.  
  49. <New id="http-legacy" class="org.eclipse.jetty.server.HttpConfiguration">
  50. <Set name="secureScheme">https</Set>
  51. <Set name="securePort">
  52. <Property name="jetty.secure.port" default="8443" />
  53. </Set>
  54. <Set name="outputBufferSize">32768</Set>
  55. <Set name="requestHeaderSize">8192</Set>
  56. <Set name="responseHeaderSize">8192</Set>
  57.  
  58. <!-- Default security setting: do not leak our version -->
  59. <Set name="sendServerVersion">false</Set>
  60.  
  61. <Set name="sendDateHeader">false</Set>
  62. <Set name="headerCacheSize">512</Set>
  63. </New>
  64.  
  65. <Call name="addConnector">
  66. <Arg>
  67. <New class="org.eclipse.jetty.server.ServerConnector">
  68. <Arg name="server">
  69. <Ref refid="Server" />
  70. </Arg>
  71. <Arg name="factories">
  72. <Array type="org.eclipse.jetty.server.ConnectionFactory">
  73. <Item>
  74. <New class="org.eclipse.jetty.server.HttpConnectionFactory">
  75. <Arg name="config">
  76. <Ref refid="http-default"/>
  77. </Arg>
  78. </New>
  79. </Item>
  80. </Array>
  81. </Arg>
  82. <Set name="host">
  83. <Property name="jetty.host"/>
  84. </Set>
  85. <Set name="port">
  86. <Property name="jetty.port" default="8181"/>
  87. </Set>
  88. <Set name="idleTimeout">
  89. <Property name="http.timeout" default="300000"/>
  90. </Set>
  91. <Set name="name">jetty-default</Set>
  92. </New>
  93. </Arg>
  94. </Call>
  95.  
  96. <Call name="addConnector">
  97. <Arg>
  98. <New class="org.eclipse.jetty.server.ServerConnector">
  99. <Arg name="server">
  100. <Ref refid="Server" />
  101. </Arg>
  102. <Arg name="factories">
  103. <Array type="org.eclipse.jetty.server.ConnectionFactory">
  104. <Item>
  105. <New class="org.eclipse.jetty.server.HttpConnectionFactory">
  106. <Arg name="config">
  107. <Ref refid="http-legacy" />
  108. </Arg>
  109. </New>
  110. </Item>
  111. </Array>
  112. </Arg>
  113. <Set name="host">
  114. <Property name="jetty.host"/>
  115. </Set>
  116. <Set name="port">
  117. <Property name="jetty.port" default="8080"/>
  118. </Set>
  119. <Set name="idleTimeout">
  120. <Property name="http.timeout" default="300000"/>
  121. </Set>q
  122. <Set name="name">jetty-legacy</Set>
  123. </New>
  124. </Arg>
  125. </Call>
  126.  
  127. <!-- =========================================================== -->
  128. <!-- Configure Authentication Realms -->
  129. <!-- Realms may be configured for the entire server here, or -->
  130. <!-- they can be configured for a specific web app in a context -->
  131. <!-- configuration (see $(jetty.home)/contexts/test.xml for an -->
  132. <!-- example). -->
  133. <!-- =========================================================== -->
  134. <Call name="addBean">
  135. <Arg>
  136. <New class="org.eclipse.jetty.jaas.JAASLoginService">
  137. <Set name="name">karaf</Set>
  138. <Set name="loginModuleName">karaf</Set>
  139. <Set name="roleClassNames">
  140. <Array type="java.lang.String">
  141. <Item>org.apache.karaf.jaas.boot.principal.RolePrincipal
  142. </Item>
  143. </Array>
  144. </Set>
  145. </New>
  146. </Arg>
  147. </Call>
  148. <Call name="addBean">
  149. <Arg>
  150. <New class="org.eclipse.jetty.jaas.JAASLoginService">
  151. <Set name="name">default</Set>
  152. <Set name="loginModuleName">karaf</Set>
  153. <Set name="roleClassNames">
  154. <Array type="java.lang.String">
  155. <Item>org.apache.karaf.jaas.boot.principal.RolePrincipal
  156. </Item>
  157. </Array>
  158. </Set>
  159. </New>
  160. </Arg>
  161. </Call>
  162. </Configure>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement