1 {%- from "opendaylight/map.jinja" import server with context -%}
4 Licensed to the Apache Software Foundation (ASF) under one
5 or more contributor license agreements. See the NOTICE file
6 distributed with this work for additional information
7 regarding copyright ownership. The ASF licenses this file
8 to you under the Apache License, Version 2.0 (the
9 "License"); you may not use this file except in compliance
10 with the License. You may obtain a copy of the License at
12 http://www.apache.org/licenses/LICENSE-2.0
14 Unless required by applicable law or agreed to in writing,
15 software distributed under the License is distributed on an
16 "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 KIND, either express or implied. See the License for the
18 specific language governing permissions and limitations
21 <!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//
22 DTD Configure//EN" "http://jetty.mortbay.org/configure.dtd">
24 <Configure id="Server" class="org.eclipse.jetty.server.Server">
26 <!-- =========================================================== -->
27 <!-- Set connectors -->
28 <!-- =========================================================== -->
29 <!-- One of each type! -->
30 <!-- =========================================================== -->
32 <!-- Use this connector for many frequently idle connections and for
33 threadless continuations. -->
34 <New id="http-default" class="org.eclipse.jetty.server.HttpConfiguration">
35 <Set name="secureScheme">https</Set>
36 <Set name="securePort">
37 <Property name="jetty.secure.port" default="8543" />
39 <Set name="outputBufferSize">32768</Set>
40 <Set name="requestHeaderSize">8192</Set>
41 <Set name="responseHeaderSize">8192</Set>
43 <!-- Default security setting: do not leak our version -->
44 <Set name="sendServerVersion">false</Set>
46 <Set name="sendDateHeader">false</Set>
47 <Set name="headerCacheSize">512</Set>
50 <New id="http-legacy" class="org.eclipse.jetty.server.HttpConfiguration">
51 <Set name="secureScheme">https</Set>
52 <Set name="securePort">
53 <Property name="jetty.secure.port" default="8443" />
55 <Set name="outputBufferSize">32768</Set>
56 <Set name="requestHeaderSize">8192</Set>
57 <Set name="responseHeaderSize">8192</Set>
59 <!-- Default security setting: do not leak our version -->
60 <Set name="sendServerVersion">false</Set>
62 <Set name="sendDateHeader">false</Set>
63 <Set name="headerCacheSize">512</Set>
66 <Call name="addConnector">
68 <New class="org.eclipse.jetty.server.ServerConnector">
70 <Ref refid="Server" />
72 <Arg name="factories">
73 <Array type="org.eclipse.jetty.server.ConnectionFactory">
75 <New class="org.eclipse.jetty.server.HttpConnectionFactory">
77 <Ref refid="http-default"/>
83 <Set name="host">{{ server.odl_bind_ip }}
84 <Property name="jetty.host"/>
87 <Property name="jetty.port" default="{{ server.odl_rest_port }}"/>
89 <Set name="idleTimeout">
90 <Property name="http.timeout" default="300000"/>
92 <Set name="name">jetty-default</Set>
97 <!-- =========================================================== -->
98 <!-- Configure Authentication Realms -->
99 <!-- Realms may be configured for the entire server here, or -->
100 <!-- they can be configured for a specific web app in a context -->
101 <!-- configuration (see $(jetty.home)/contexts/test.xml for an -->
103 <!-- =========================================================== -->
104 <Call name="addBean">
106 <New class="org.eclipse.jetty.jaas.JAASLoginService">
107 <Set name="name">karaf</Set>
108 <Set name="loginModuleName">karaf</Set>
109 <Set name="roleClassNames">
110 <Array type="java.lang.String">
111 <Item>org.apache.karaf.jaas.boot.principal.RolePrincipal
118 <Call name="addBean">
120 <New class="org.eclipse.jetty.jaas.JAASLoginService">
121 <Set name="name">default</Set>
122 <Set name="loginModuleName">karaf</Set>
123 <Set name="roleClassNames">
124 <Array type="java.lang.String">
125 <Item>org.apache.karaf.jaas.boot.principal.RolePrincipal