refactor is in progress
This commit is contained in:
parent
04300a161e
commit
61ec499c0e
3 changed files with 69 additions and 12 deletions
|
@ -1 +1,20 @@
|
|||
module Backend.Https where
|
||||
|
||||
import Backend.Http
|
||||
import qualified Data.Text as T
|
||||
import Toml (TomlCodec, (.=))
|
||||
import qualified Toml
|
||||
|
||||
type HttpsConfiguration = (HttpConfiguration, TLSConfiguration)
|
||||
|
||||
data TLSConfiguration = TLSConfiguration
|
||||
{ cerfFile :: FilePath,
|
||||
certChain :: [FilePath],
|
||||
keyFile :: FilePath
|
||||
}
|
||||
|
||||
tlsDefaultSetting :: TLSConfiguration
|
||||
tlsDefaultSetting = TLSConfiguration "certificate.pem" [] "key.pem"
|
||||
|
||||
httpsDefaultSetting :: HttpsConfiguration
|
||||
httpsDefaultSetting = (httpDefaultSetting, tlsDefaultSetting)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue