Module

Bucketchain.SSLify

Package
purescript-bucketchain-sslify
Repository
Bucketchain/purescript-bucketchain-sslify

#Options Source

type Options = { hostname :: Maybe String, trustProtoHeader :: Boolean }

Force https options.

  • hostname is redirect target hostname. If Nothing, hostname is detected from :authority header or Host header.
  • trustProtoHeader is a option trusting X-Forwarded-Proto header to check that protocol is https.

#defaultOptions Source

defaultOptions :: Options

Default options.

  • hostname is Nothing.
  • trustProtoHeader is false.

#withForceHttps Source

withForceHttps :: Options -> Middleware

Force https middleware.