Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Instead of running hprox
binary directly, you can use this library
to run HProx in front of arbitrary WAI Application
.
Synopsis
- data CertFile = CertFile {}
- data Config = Config {
- _bind :: !(Maybe String)
- _port :: !Int
- _ssl :: ![(String, CertFile)]
- _auth :: !(Maybe FilePath)
- _ws :: !(Maybe ByteString)
- _rev :: ![(Maybe ByteString, ByteString, ByteString)]
- _doh :: !(Maybe String)
- _hide :: !Bool
- _naive :: !Bool
- _name :: !ByteString
- _acme :: !(Maybe ByteString)
- _log :: !String
- _loglevel :: !LogLevel
- _user :: !(Maybe String)
- _group :: !(Maybe String)
- data LogLevel
- defaultConfig :: Config
- getConfig :: IO Config
- run :: Application -> Config -> IO ()
Documentation
Configuration of HProx, see hprox --help
for details
Config | |
|
Logging level, default value is INFO
defaultConfig :: Config Source #
Default value of Config
, same as running hprox
without arguments
:: Application | fallback application |
-> Config | configuration |
-> IO () |
Run HProx in front of fallback Application
, with specified Config