sunng87 / ring-jetty9-adapter

An enhanced version of jetty adapter for ring, with additional features like websockets, http/2 and http/3

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Supporting :keystore-scan-interval like the main Jetty adapter

TuggyNE opened this issue · comments

Looks like Ring's bundled Jetty adapter supports a useful option, :keystore-scan-interval, which allows updating certificates without restarting the server. Seems like the code for it is pretty simple, although I haven't tried building from source yet so I don't have an easy way to test it. Thoughts on pulling that in?

That will be a good addition. Will you send a pull request for that?

This is now supported (after merging #91), or rather, automatically happening so this ticket could be closed.

@sunng87 Now that we rely on Jetty's KeyStoreScanner, it is trivial to support a keystore-scan-interval option, and propagate it down to the .setScanInterval call (which now hardcodes 3600). I would have done this in my PR, but I completely forgot about this issue... :(

For reference:
https://github.com/ring-clojure/ring/blob/master/ring-jetty-adapter/src/ring/adapter/jetty.clj#L125