PageRenderTime 25ms CodeModel.GetById 14ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 0ms

/opennms-base-assembly/src/main/filtered/etc/examples/jetty.xml

https://github.com/ajakubo1/opennms
XML | 116 lines | 61 code | 8 blank | 47 comment | 0 complexity | 05c84be80087477376d0de029bc3250b MD5 | raw file
  1<?xml version="1.0"?>
  2<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure.dtd">
  3
  4<Configure id="FileServer" class="org.eclipse.jetty.server.Server">
  5
  6	<Call name="addConnector">
  7		<Arg>
  8			<New class="org.eclipse.jetty.server.nio.SelectChannelConnector">
  9				<Set name="statsOn">true</Set>
 10				<Set name="host"><SystemProperty name="org.opennms.netmgt.jetty.host" default="0.0.0.0" /></Set>
 11				<Set name="port"><SystemProperty name="org.opennms.netmgt.jetty.port" default="8980" /></Set>
 12				<Set name="requestHeaderSize"><SystemProperty name="org.opennms.netmgt.jetty.requestHeaderSize" default="4000" /></Set>
 13			</New>
 14		</Arg>
 15	</Call>
 16
 17	<!-- Add AJP support -->
 18	<!--
 19	<Call name="addConnector">
 20		<Arg>
 21			<New class="org.eclipse.jetty.ajp.Ajp13SocketConnector">
 22				<Set name="statsOn">true</Set>
 23				<Set name="port">8981</Set>
 24			</New>
 25		</Arg>
 26	</Call>
 27	-->
 28
 29	<!-- Add HTTPS support -->
 30	<!--
 31	<Call name="addConnector">
 32		<Arg>
 33			<New class="org.eclipse.jetty.server.ssl.SslSelectChannelConnector">
 34				<Arg>
 35					<New class="org.eclipse.jetty.http.ssl.SslContextFactory">
 36						<Set name="keyStore"><SystemProperty name="org.opennms.netmgt.jetty.https-keystore" /></Set>
 37						<Set name="keyStorePassword"><SystemProperty name="org.opennms.netmgt.jetty.https-keystorepassword" default="changeit" /></Set>
 38						<Set name="keyManagerPassword"><SystemProperty name="org.opennms.netmgt.jetty.https-keypassword" default="changeit" /></Set>
 39						<Set name="trustStore"><SystemProperty name="org.opennms.netmgt.jetty.https-keystore" /></Set>
 40						<Set name="trustStorePassword"><SystemProperty name="org.opennms.netmgt.jetty.https-keystorepassword" default="changeit" /></Set>
 41					</New>
 42				</Arg>
 43				<Set name="host"><SystemProperty name="org.opennms.netmgt.jetty.https-host" default="0.0.0.0" /></Set>
 44				<Set name="port"><SystemProperty name="org.opennms.netmgt.jetty.https-port" default="8443" /></Set>
 45				<Set name="maxIdleTime">30000</Set>
 46				<Set name="ExcludeCipherSuites">
 47					<Array type="java.lang.String">
 48						<Item>SSL_DHE_DSS_WITH_DES_CBC_SHA</Item>
 49						<Item>SSL_DHE_RSA_EXPORT_WITH_DES40_CBC_SHA</Item>
 50						<Item>SSL_DHE_DSS_EXPORT_WITH_DES40_CBC_SHA</Item>
 51						<Item>SSL_DHE_RSA_WITH_DES_CBC_SHA</Item>
 52						<Item>SSL_RSA_EXPORT_WITH_DES40_CBC_SHA</Item>
 53						<Item>SSL_RSA_EXPORT_WITH_RC4_40_MD5</Item>
 54						<Item>SSL_RSA_WITH_3DES_EDE_CBC_SHA</Item>
 55						<Item>SSL_RSA_WITH_DES_CBC_SHA</Item>
 56						<Item>TLS_DHE_RSA_EXPORT_WITH_DES40_CBC_SHA</Item>
 57						<Item>TLS_RSA_EXPORT_WITH_DES40_CBC_SHA</Item>
 58						<Item>TLS_RSA_WITH_DES_CBC_SHA</Item>
 59					</Array>
 60				</Set>
 61			</New>
 62		</Arg>
 63	</Call>
 64	-->
 65
 66	<Set name="handler">
 67		<New id="Handlers" class="org.eclipse.jetty.server.handler.HandlerCollection">
 68			<Set name="handlers">
 69			 <Array type="org.eclipse.jetty.server.Handler">
 70				 <Item>
 71					 <New id="Contexts" class="org.eclipse.jetty.server.handler.ContextHandlerCollection"/>
 72				 </Item>
 73				 <Item>
 74					 <New id="DefaultHandler" class="org.eclipse.jetty.server.handler.DefaultHandler"/>
 75				 </Item>
 76			 </Array>
 77			</Set>
 78		</New>
 79	</Set>
 80
 81	<Call name="addBean">
 82		<Arg>
 83			<New id="DeploymentManager" class="org.eclipse.jetty.deploy.DeploymentManager">
 84				<Set name="contexts">
 85					<Ref id="Contexts" />
 86				</Set>
 87				<Call name="setContextAttribute">
 88					<Arg>org.eclipse.jetty.server.webapp.ContainerIncludeJarPattern</Arg>
 89					<Arg>.*/[^/]*\.jar$</Arg>
 90				</Call>
 91			</New>
 92		</Arg>
 93	</Call>
 94
 95	<Ref id="DeploymentManager">
 96		<Call name="addAppProvider">
 97			<Arg>
 98				<New class="org.eclipse.jetty.deploy.providers.ContextProvider">
 99					<Set name="monitoredDirName"><SystemProperty name="opennms.home" />/contexts</Set>
100					<Set name="scanInterval">10</Set>
101				</New>
102			</Arg>
103		</Call>
104		<Call id="webappprovider" name="addAppProvider">
105			<Arg>
106				<New class="org.eclipse.jetty.deploy.providers.WebAppProvider">
107					<Set name="monitoredDirName"><SystemProperty name="opennms.home" />/jetty-webapps</Set>
108					<Set name="scanInterval">10</Set>
109					<Set name="contextXmlDir"><SystemProperty name="opennms.home" />/contexts</Set>
110					<Set name="extractWars">false</Set>
111				</New>
112			</Arg>
113		</Call>
114	</Ref>
115
116</Configure>