Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: b1b9a844dbb87e9555716d1b11acf46c8faad17f (plain) (blame)
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
<?xml version="1.0"?>
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure_9_3.dtd">

<Configure id="Server" class="org.eclipse.jetty.server.Server">

  <!-- ============================================================================================== -->
  <!-- GCloud configuration.                                                                          -->
  <!-- Note: passwords can use jetty obfuscation.  See                                                -->
  <!-- https://www.eclipse.org/jetty/documentation/current/configuring-security-secure-passwords.html -->
  <!-- See your start.ini or gcloud-sessions.ini file for more configuration information.             -->
  <!-- ============================================================================================== -->
  <New id="gconf" class="org.eclipse.jetty.gcloud.session.GCloudConfiguration">
    <!-- Either set jetty.gcloudSession.projectId or use system property/env var DATASTORE_DATASET-->
    <Set name="projectId"><Property name="jetty.gcloudSession.projectId"/></Set>
    <!-- To contact remote gclouddatastore set the following properties in start.ini -->
    <Set name="p12File"><Property name="jetty.gcloudSession.p12File"/></Set>
    <Set name="serviceAccount"><Property name="jetty.gcloudSession.serviceAccount"/></Set>
    <Set name="password"><Property name="jetty.gcloudSession.password"/></Set>
  </New>


  <!-- ===================================================================== -->
  <!-- Configure a GCloudSessionIdManager                                    -->
  <!-- ===================================================================== -->
  <Set name="sessionIdManager">
    <New id="idMgr" class="org.eclipse.jetty.gcloud.session.GCloudSessionIdManager">
      <Arg>
        <Ref id="Server"/>
      </Arg>
      <Set name="workerName"><Property name="jetty.gcloudSession.workerName" default="node1"/></Set>
      <Set name="config"><Ref id="gconf"/></Set>
    </New>
  </Set>

</Configure>

Back to the top