On 28 Sep., 13:46, James Reeves <
weavejes...@googlemail.com> wrote:
> On Sep 28, 9:24 am, André Thieme <
splendidl...@googlemail.com> wrote:
>
> > Compojure does not ship with a full Jetty installation.
> > For those full installs there are tutorials that explain how to
> > make Jetty understand https. I now need to offer https for my
> > users. Is there a way to do that with compojure? Such as pointing
> > to a certificate on disk during starting up Jetty?
>
> Yep, you can do this:
>
> (run-server {:ssl true, :keystore "my.keystore", :key-password
> "foobar"}
> "/*" (servlet my-routes))
This sounds good and easy. I adopted this a little bit
and used (jetty-server ...) instead. I then guessed that the
key :ssl-port may also be accepted, and yes, it is.
Can one also configure it in a way that only the ssl
port opens, and http is *not* accepted?
Anyway, your solution works well for me, thanks!