-1

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.

2 Answers2

2

Use the runTLS fn from warp-tls here.

liminalisht
  • 1,243
  • 9
  • 11
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