jetty-https.xml 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. <?xml version="1.0"?>
  2. <!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure_9_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="acceptors" type="int"><Property name="solr.jetty.ssl.acceptors" default="-1"/></Arg>
  25. <Arg name="selectors" type="int"><Property name="solr.jetty.ssl.selectors" default="-1"/></Arg>
  26. <Arg name="factories">
  27. <Array type="org.eclipse.jetty.server.ConnectionFactory">
  28. <Item>
  29. <New class="org.eclipse.jetty.server.SslConnectionFactory">
  30. <Arg name="next">http/1.1</Arg>
  31. <Arg name="sslContextFactory"><Ref refid="sslContextFactory"/></Arg>
  32. </New>
  33. </Item>
  34. <Item>
  35. <New class="org.eclipse.jetty.server.HttpConnectionFactory">
  36. <Arg name="config"><Ref refid="sslHttpConfig"/></Arg>
  37. </New>
  38. </Item>
  39. </Array>
  40. </Arg>
  41. <Set name="host"><Property name="solr.jetty.host" /></Set>
  42. <Set name="port"><Property name="solr.jetty.https.port" default="8983" /></Set>
  43. <Set name="idleTimeout"><Property name="solr.jetty.https.timeout" default="120000"/></Set>
  44. <Set name="soLingerTime"><Property name="solr.jetty.https.soLingerTime" default="-1"/></Set>
  45. <Set name="acceptorPriorityDelta"><Property name="solr.jetty.ssl.acceptorPriorityDelta" default="0"/></Set>
  46. <Set name="acceptQueueSize"><Property name="solr.jetty.https.acceptQueueSize" default="0"/></Set>
  47. </New>
  48. </Arg>
  49. </Call>
  50. </Configure>