XML   40

jetty https xml

Guest on 25th May 2022 01:02:55 PM

  1. <!--  =============================================================  -->
  2. <!--  Configure a HTTPS connector.                                   -->
  3. <!--  This configuration must be used in conjunction with jetty.xml  -->
  4. <!--  and jetty-ssl.xml.                                             -->
  5. <!--  =============================================================  -->
  6. <Configure id="Server" class="org.eclipse.jetty.server.Server">
  7. <!--  ===========================================================  -->
  8. <!--  Add a HTTPS Connector.                                       -->
  9. <!--  Configure an o.e.j.server.ServerConnector with connection    -->
  10. <!--  factories for TLS (aka SSL) and HTTP to provide HTTPS.       -->
  11. <!--  All accepted TLS connections are wired to a HTTP connection. -->
  12. <!--                                                               -->
  13. <!--  Consult the javadoc of o.e.j.server.ServerConnector,         -->
  14. <!--  o.e.j.server.SslConnectionFactory and                        -->
  15. <!--  o.e.j.server.HttpConnectionFactory for all configuration     -->
  16. <!--  that may be set here.                                        -->
  17. <!--  ===========================================================  -->
  18. <Call id="httpsConnector" name="addConnector">
  19. <Arg>
  20. <New class="org.eclipse.jetty.server.ServerConnector">
  21. <Arg name="server">
  22. <Ref refid="Server"/>
  23. </Arg>
  24. <Arg name="acceptors" type="int">
  25. <Property name="solr.jetty.ssl.acceptors" default="-1"/>
  26. </Arg>
  27. <Arg name="selectors" type="int">
  28. <Property name="solr.jetty.ssl.selectors" default="-1"/>
  29. </Arg>
  30. <Arg name="factories">
  31. <Array type="org.eclipse.jetty.server.ConnectionFactory">
  32. <Item>
  33. <New class="org.eclipse.jetty.server.SslConnectionFactory">
  34. <Arg name="next">http/1.1</Arg>
  35. <Arg name="sslContextFactory">
  36. <Ref refid="sslContextFactory"/>
  37. </Arg>
  38. </New>
  39. </Item>
  40. <Item>
  41. <New class="org.eclipse.jetty.server.HttpConnectionFactory">
  42. <Arg name="config">
  43. <Ref refid="sslHttpConfig"/>
  44. </Arg>
  45. </New>
  46. </Item>
  47. </Array>
  48. </Arg>
  49. <Set name="host">
  50. <Property name="solr.jetty.host"/>
  51. </Set>
  52. <Set name="port">
  53. <Property name="solr.jetty.https.port" default="8983"/>
  54. </Set>
  55. <Set name="idleTimeout">
  56. <Property name="solr.jetty.https.timeout" default="50000"/>
  57. </Set>
  58. <Set name="soLingerTime">
  59. <Property name="solr.jetty.https.soLingerTime" default="-1"/>
  60. </Set>
  61. <Set name="acceptorPriorityDelta">
  62. <Property name="solr.jetty.ssl.acceptorPriorityDelta" default="0"/>
  63. </Set>
  64. <Set name="selectorPriorityDelta">
  65. <Property name="solr.jetty.ssl.selectorPriorityDelta" default="0"/>
  66. </Set>
  67. <Set name="acceptQueueSize">
  68. <Property name="solr.jetty.https.acceptQueueSize" default="0"/>
  69. </Set>
  70. </New>
  71. </Arg>
  72. </Call>
  73. </Configure>

Raw Paste


Login or Register to edit or fork this paste. It's free.