This repository has been archived by the owner on Sep 16, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 34
/
gae.xml
88 lines (81 loc) · 3.33 KB
/
gae.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<?xml version="1.0"?>
<!--
~ Copyright 2016 Google Inc. All Rights Reserved.
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure_9_0.dtd">
<Configure id="Server" class="org.eclipse.jetty.server.Server">
<!-- =========================================================== -->
<!-- Ammend HttpConfig -->
<!-- =========================================================== -->
<Ref refid="httpConfig">
<Set name="headerCacheSize">
<Property name="jetty.httpConfig.headerCacheSize"
default="512" />
</Set>
<Call name="addCustomizer">
<Arg>
<New class="com.google.apphosting.jetty9.GoogleRequestCustomizer">
<Arg name="httpPort" type="int"><Property name="gae.httpPort" default="80"/></Arg>
<Arg name="httpsPort" type="int"><Property name="gae.httpsPort" default="443"/></Arg>
</New>
</Arg>
</Call>
</Ref>
<!-- =========================================================== -->
<!-- Setup server log -->
<!-- =========================================================== -->
<Call id="logMgr" class="java.util.logging.LogManager" name="getLogManager">
<Call name="readConfiguration">
<Arg>
<New class="java.io.FileInputStream">
<Arg><Property name="jetty.base" default="."/>/etc/java-util-logging.properties</Arg>
</New>
</Arg>
</Call>
</Call>
<!-- =========================================================== -->
<!-- Setup a request log -->
<!-- =========================================================== -->
<Ref refid="Handlers">
<Call name="addHandler">
<Arg>
<New id="RequestLog" class="org.eclipse.jetty.server.handler.RequestLogHandler">
<Set name="requestLog">
<New id="RequestLogImpl" class="org.eclipse.jetty.server.NCSARequestLog">
<Arg><Property name="com.google.apphosting.logs" default="/var/log/app_engine" />/request.yyyy_mm_dd.log</Arg>
<Set name="retainDays">2</Set>
<Set name="append">true</Set>
<Set name="extended">true</Set>
<Set name="LogTimeZone">GMT</Set>
<Set name="logLatency">true</Set>
<Set name="preferProxiedForAddress">true</Set>
</New>
</Set>
</New>
</Arg>
</Call>
</Ref>
<Ref refid="DeploymentManager">
<Call name="addLifeCycleBinding">
<Arg>
<New class="org.eclipse.jetty.deploy.bindings.GlobalWebappConfigBinding">
<Set name="jettyXml"><Property name="jetty.base"/>/etc/gae-web.xml</Set>
</New>
</Arg>
</Call>
</Ref>
<!-- TODO remove when this has been added to jetty.xml -->
<Set name="stopTimeout"><Property name="jetty.server.stopTimeout" default="30000"/></Set>
</Configure>