jetty-https.xml 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?xml version="1.0"?>
  2. <!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "https://www.eclipse.org/jetty/configure_10_0.dtd">
  3. <!-- ============================================================= -->
  4. <!-- Configure a HTTPS connector. -->
  5. <!-- This configuration must be used in conjunction with jetty.xml -->
  6. <!-- and jetty-ssl.xml. -->
  7. <!-- ============================================================= -->
  8. <Configure id="Server" class="org.eclipse.jetty.server.Server">
  9. <!-- =========================================================== -->
  10. <!-- Add a HTTPS Connector. -->
  11. <!-- Configure an o.e.j.server.ServerConnector with connection -->
  12. <!-- factories for TLS (aka SSL) and HTTP to provide HTTPS. -->
  13. <!-- All accepted TLS connections are wired to a HTTP connection.-->
  14. <!-- -->
  15. <!-- Consult the javadoc of o.e.j.server.ServerConnector, -->
  16. <!-- o.e.j.server.SslConnectionFactory and -->
  17. <!-- o.e.j.server.HttpConnectionFactory for all configuration -->
  18. <!-- that may be set here. -->
  19. <!-- =========================================================== -->
  20. <Call id="httpsConnector" name="addConnector">
  21. <Arg>
  22. <New class="org.eclipse.jetty.server.ServerConnector">
  23. <Arg name="server"><Ref refid="Server" /></Arg>
  24. <Arg name="factories">
  25. <Array type="org.eclipse.jetty.server.ConnectionFactory">
  26. <Item>
  27. <New class="org.eclipse.jetty.server.SslConnectionFactory">
  28. <Arg name="next">http/1.1</Arg>
  29. <Arg name="sslContextFactory"><Ref refid="sslContextFactory"/></Arg>
  30. </New>
  31. </Item>
  32. <Item>
  33. <New class="org.eclipse.jetty.server.HttpConnectionFactory">
  34. <Arg name="config"><Ref refid="sslHttpConfig"/></Arg>
  35. </New>
  36. </Item>
  37. </Array>
  38. </Arg>
  39. <Set name="host"><Property name="jetty.host" /></Set>
  40. <Set name="port"><Property name="jetty.https.port" default="8443" /></Set>
  41. <Set name="idleTimeout">30000</Set>
  42. </New>
  43. </Arg>
  44. </Call>
  45. </Configure>