Skip to content

Commit

Permalink
Issue #5019 - add jetty module files and xml to use ssl-reload with s…
Browse files Browse the repository at this point in the history
…tart.jar

Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
  • Loading branch information
lachlan-roberts committed Jul 10, 2020
1 parent 13e034f commit f348734
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
13 changes: 13 additions & 0 deletions jetty-ssl-reload/src/main/config/etc/jetty-ssl-reload.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0"?><!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure_9_3.dtd">

<Configure id="Server" class="org.eclipse.jetty.server.Server">

<Call name="addBean">
<Arg>
<New id="sslKeyStoreScanner" class="org.eclipse.jetty.ssl.reload.SslKeyStoreScanner.SslKeyStoreScanner">
<Arg><Ref refid="sslContextFactory"/></Arg>
<Set name="scanInterval"><Property name="jetty.ssl.reload.scanInterval" default="1"/></Set>
</New>
</Arg>
</Call>
</Configure>
17 changes: 17 additions & 0 deletions jetty-ssl-reload/src/main/config/modules/ssl-reload.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
DO NOT EDIT - See: https://www.eclipse.org/jetty/documentation/current/startup-modules.html

[description]
Enables the SSL keystore to be reloaded after any changes are detected on the file system.

[depend]
ssl

[lib]
lib/jetty-ssl-reload-${jetty.version}.jar

[xml]
etc/jetty-ssl-reload.xml

[ini-template]
# Monitored directory scan period (seconds)
# jetty.ssl.reload.scanInterval=1

0 comments on commit f348734

Please sign in to comment.