Revision 25c1d6d8
Added by Andreas Kohlbecker over 7 years ago
src/test/resources/etc/jetty/jetty.xml | ||
---|---|---|
1 |
<?xml version="1.0"?> |
|
2 |
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure_9_0.dtd"> |
|
3 |
|
|
4 |
<!-- ============================================================== --> |
|
5 |
<!-- Sets up characteristics of the org.eclipse.jetty.server.Server --> |
|
6 |
<!-- instance for the plugin to use. Importantly, it sets up the --> |
|
7 |
<!-- org.eclipse.jetty.server.HttpConfiguration element that we can --> |
|
8 |
<!-- refer to in subsequent xml files that configure the connectors --> |
|
9 |
<!-- ============================================================== --> |
|
10 |
|
|
1 | 11 |
<Configure id="Server" class="org.eclipse.jetty.server.Server"> |
2 |
<Get name="handler"> |
|
3 |
<Call name="setAttribute"> |
|
4 |
<Arg>org.eclipse.jetty.server.webapp.WebInfIncludeJarPattern</Arg> |
|
5 |
<Arg>.*/spring-web-.*\.jar$</Arg> |
|
6 |
</Call> |
|
7 |
</Get> |
|
12 |
<New id="httpConfig" class="org.eclipse.jetty.server.HttpConfiguration"> |
|
13 |
<Set name="secureScheme">http</Set> |
|
14 |
<Set name="securePort"> |
|
15 |
<Property name="jetty.secure.port" default="9443" /> |
|
16 |
</Set> |
|
17 |
<Set name="outputBufferSize">32768</Set> |
|
18 |
<Set name="requestHeaderSize">8192</Set> |
|
19 |
<Set name="responseHeaderSize">8192</Set> |
|
20 |
<Set name="sendServerVersion">true</Set> |
|
21 |
<Set name="sendDateHeader">false</Set> |
|
22 |
<Set name="headerCacheSize">512</Set> |
|
23 |
<!-- Uncomment to enable handling of X-Forwarded- style headers <Call name="addCustomizer"> |
|
24 |
<Arg><New class="org.eclipse.jetty.server.ForwardedRequestCustomizer"/></Arg> |
|
25 |
</Call> --> |
|
26 |
</New> |
|
8 | 27 |
</Configure> |
Also available in: Unified diff
fixin project setup: