This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2015-11-15
Channels
- # admin-announcements (1)
- # alda (12)
- # announcements (1)
- # beginners (5)
- # boot (241)
- # clara (2)
- # cljs-dev (7)
- # cljsrn (9)
- # clojure (54)
- # clojure-conj (7)
- # clojure-russia (12)
- # clojurescript (118)
- # cursive (11)
- # editors (3)
- # hoplon (58)
- # immutant (17)
- # off-topic (58)
- # om (1)
- # onyx (12)
- # re-frame (10)
- # reagent (8)
- # spacemacs (6)
@jaen: I saw your question on IRC re:ALPN. I haven't tried it yet, but take a look at https://lists.jboss.org/pipermail/undertow-dev/2015-November/001412.html and see if that helps
@tcrawley: I'm somewhat further now, I've figured I have to add this as a dep - [org.mortbay.jetty.alpn/alpn-boot "8.1.5.v20150921"]
this made the application actually boot.
(defn start!
"Starts the application."
[]
(let [port (or (some-> environ/env :port Integer.)
8080)
ssl-context (less-awful-ssl/ssl-context "certs/server.pkcs8" "certs/server.crt" "certs/rootCA.pem")
configuration (-> (undertow/options {:host "0.0.0.0"
:port port
:ssl-port 8443
:ssl-context ssl-context})
#_(update :configuration #(doto %
(.setServerOption UndertowOptions/ENABLE_HTTP2 true)
(.setServerOption UndertowOptions/ENABLE_SPDY true))))]
(reset! check-amusement-park-job-handle (scheduling/schedule check-amusement-park-job job-interval))
(reset! web-server-handle (web/run handler configuration))))
It was a bit of a pain to figure the options out, but I think they are right according to the docs
I tried generating certificatess both with the CA.pl method as described in less awful ssl repo and signing keys by hand as well
hmm, would you mind filing an issue with a sample app? perhaps @jcrossley3 can take a look - I'm traveling now, so likely won't have a chance to look at it for a few days
Sure, I was going to do it as well, since that's what you said on IRC, I just thought I'd share that in case I'm doing something obviously wrong.