keter-1.3.9: Web application deployment manager, focusing on Haskell web frameworks

Safe HaskellNone
LanguageHaskell98

Keter.Types.V10

Synopsis

Documentation

data BundleConfig Source

Constructors

BundleConfig 

Fields

bconfigStanzas :: !(Vector (Stanza ()))
 
bconfigPlugins :: !Object

settings used for plugins

data ListeningPort Source

Constructors

LPSecure !HostPreference !Port !FilePath !(Vector FilePath) !FilePath 
LPInsecure !HostPreference !Port 

data KeterConfig Source

Constructors

KeterConfig 

Fields

kconfigDir :: FilePath
 
kconfigPortPool :: PortSettings
 
kconfigListeners :: !(NonEmptyVector ListeningPort)
 
kconfigSetuid :: Maybe Text
 
kconfigBuiltinStanzas :: !(Vector (Stanza ()))
 
kconfigIpFromHeader :: Bool
 
kconfigExternalHttpPort :: !Int

External HTTP port when generating APPROOTs.

kconfigExternalHttpsPort :: !Int

External HTTPS port when generating APPROOTs.

kconfigEnvironment :: !(Map Text Text)

Environment variables to be passed to all apps.

type RequiresSecure = Bool Source

Whether we should force redirect to HTTPS routes.

data Stanza port Source

Constructors

Stanza (StanzaRaw port) RequiresSecure 

Instances

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:

  1. Webapps will be assigned ports.
  2. Not all stanzas have an associated proxy action.

Instances

addRequiresSecure :: ToJSON a => Bool -> a -> Value Source

addStanzaType :: ToJSON a => Value -> a -> Value Source

data SourcePath Source

Constructors

SPAny 
SPSpecific !Text 

Instances

data RedirectDest Source

Constructors

RDUrl !Text 
RDPrefix !IsSecure !Host !(Maybe Port) 

Instances

data WebAppConfig port Source

Constructors

WebAppConfig 

Fields

waconfigExec :: !FilePath
 
waconfigArgs :: !(Vector Text)
 
waconfigEnvironment :: !(Map Text Text)
 
waconfigApprootHost :: !Host

primary host, used for approot

waconfigHosts :: !(Set Host)

all hosts, not including the approot host

waconfigSsl :: !Bool
 
waconfigPort :: !port
 
waconfigForwardEnv :: !(Set Text)
 

Instances