Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CLI ¶
type CLI struct {
HTTPPort uint16 `help:"HTTP port to listen on." default:"8080" env:"DORAS_HTTP_PORT"`
Host string `help:"Hostname to listen on." default:"127.0.0.1" env:"DORAS_HOST"`
ConfigFilePath string `help:"Path to the Doras server config file." env:"DORAS_CONFIG_FILE_PATH"`
DockerConfigFilePath string `` /* 145-byte string literal not displayed */
LogLevel string `help:"Server log level." default:"info" enum:"debug,info,warn,error" env:"DORAS_LOG_LEVEL"`
ShutdownTimout uint `help:"Graceful shutdown timeout (in seconds)." default:"20" env:"DORAS_SHUTDOWN_TIMEOUT"`
InsecureAllowHTTP bool `help:"Allow INSECURE HTTP connections." default:"false" env:"DORAS_INSECURE_ALLOW_HTTP"`
}
CLI is the struct to parse the command line parameters or environment variables.
type ServerConfig ¶
type ServerConfig struct {
ConfigFile ServerConfigFile
CliOpts CLI
}
ServerConfig is the data structure to configure a Doras s
type ServerConfigFile ¶
type ServerConfigFile struct {
TrustedProxies []string `yaml:"trusted-proxies"`
}
ServerConfigFile is used to parse the config files that can be used for more extensive configuration.
Click to show internal directories.
Click to hide internal directories.