Description
TLS for Scotty.
Description
Run your Scotty apps over TLS
README.md
Scotty-TLS
You can test by generating a self-signed certificate here.
cabal update && cabal install scotty-tls
{-# LANGUAGE OverloadedStrings #-}
import Data.Monoid (mconcat)
import Web.Scotty
import Web.Scotty.TLS
main :: IO ()
main = scottyTLS 3000 "server.key" "server.crt" $ do
get "/:word" $ do
beam <- param "word"
html $ mconcat ["<h1>Scotty, ", beam, " me up!</h1>"]