I have a Spock web site which must be available via HTTPS. How can I setup it up properly for that? I think it should be the same way as for Wai/Warp, but still there's no information which is up to date.
Asked
Active
Viewed 329 times
2 Answers
2
Use the runTLS
fn from warp-tls
here.

liminalisht
- 1,243
- 9
- 11
-
how . .exactly? – Ramiradi May 05 '17 at 20:23
2
I haven't used Spock, but how about this?
spockCfg <- defaultSpockCfg () PCNoDatabase () app <- spockAsApp (spock spockCfg yourAppMonad) runTLS defaultTlsSettings (tlsSettings "cert.pem" "privkey.pem") app

jeiea
- 1,965
- 14
- 24