Module

Bucketchain.SSLify

#Options

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

defaultOptions :: Options

Default options.

  • hostname is Nothing.
  • trustProtoHeader is false.

#withForceHttps

withForceHttps :: Options -> Middleware

Force https middleware.

Modules