Safe Haskell | None |
---|---|
Language | Haskell98 |
- data BundleConfig = BundleConfig {
- bconfigStanzas :: !(Vector (Stanza ()))
- bconfigPlugins :: !Object
- data ListeningPort
- data KeterConfig = KeterConfig {
- kconfigDir :: FilePath
- kconfigPortPool :: PortSettings
- kconfigListeners :: !(NonEmptyVector ListeningPort)
- kconfigSetuid :: Maybe Text
- kconfigBuiltinStanzas :: !(Vector (Stanza ()))
- kconfigIpFromHeader :: Bool
- kconfigExternalHttpPort :: !Int
- kconfigExternalHttpsPort :: !Int
- kconfigEnvironment :: !(Map Text Text)
- type RequiresSecure = Bool
- data Stanza port = Stanza (StanzaRaw port) RequiresSecure
- data StanzaRaw port
- data ProxyActionRaw
- type ProxyAction = (ProxyActionRaw, RequiresSecure)
- addRequiresSecure :: ToJSON a => Bool -> a -> Value
- addStanzaType :: ToJSON a => Value -> a -> Value
- data StaticFilesConfig = StaticFilesConfig {
- sfconfigRoot :: !FilePath
- sfconfigHosts :: !(Set Host)
- sfconfigListings :: !Bool
- sfconfigMiddleware :: ![MiddlewareConfig]
- data RedirectConfig = RedirectConfig {
- redirconfigHosts :: !(Set Host)
- redirconfigStatus :: !Int
- redirconfigActions :: !(Vector RedirectAction)
- data RedirectAction = RedirectAction !SourcePath !RedirectDest
- data SourcePath
- = SPAny
- | SPSpecific !Text
- data RedirectDest
- type IsSecure = Bool
- data WebAppConfig port = WebAppConfig {
- waconfigExec :: !FilePath
- waconfigArgs :: !(Vector Text)
- waconfigEnvironment :: !(Map Text Text)
- waconfigApprootHost :: !Host
- waconfigHosts :: !(Set Host)
- waconfigSsl :: !Bool
- waconfigPort :: !port
- waconfigForwardEnv :: !(Set Text)
- data AppInput
- data BackgroundConfig = BackgroundConfig {
- bgconfigExec :: !FilePath
- bgconfigArgs :: !(Vector Text)
- bgconfigEnvironment :: !(Map Text Text)
- bgconfigRestartCount :: !RestartCount
- bgconfigRestartDelaySeconds :: !Word
- data RestartCount
Documentation
data BundleConfig Source
BundleConfig | |
|
data ListeningPort Source
data KeterConfig Source
KeterConfig | |
|
ParseYamlFile KeterConfig | |
Default KeterConfig | |
ToCurrent KeterConfig | |
type Previous KeterConfig = KeterConfig |
type RequiresSecure = Bool Source
Whether we should force redirect to HTTPS routes.
Stanza (StanzaRaw port) RequiresSecure |
ToJSON (Stanza ()) | |
ParseYamlFile (Stanza ()) |
data ProxyActionRaw Source
An action to be performed for a requested hostname.
This datatype is very similar to Stanza, but is necessarily separate since:
- Webapps will be assigned ports.
- Not all stanzas have an associated proxy action.
type ProxyAction = (ProxyActionRaw, RequiresSecure) Source
addRequiresSecure :: ToJSON a => Bool -> a -> Value Source
addStanzaType :: ToJSON a => Value -> a -> Value Source
data StaticFilesConfig Source
StaticFilesConfig | |
|
data RedirectConfig Source
RedirectConfig | |
|
data RedirectAction Source
Show RedirectAction | |
ToJSON RedirectAction | |
FromJSON RedirectAction |
data RedirectDest Source
Show RedirectDest | |
ToJSON RedirectDest | |
FromJSON RedirectDest |
data WebAppConfig port Source
WebAppConfig | |
|
Show port => Show (WebAppConfig port) | |
ToJSON (WebAppConfig ()) | |
ParseYamlFile (WebAppConfig ()) | |
ToCurrent (WebAppConfig ()) | |
type Previous (WebAppConfig ()) = AppConfig |
data BackgroundConfig Source
BackgroundConfig | |
|
data RestartCount Source
Show RestartCount | |
FromJSON RestartCount |