Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BasicAuth ¶
type BasicAuth struct {
Enabled bool `json:"enabled" yaml:"enabled" env:"RC_AUTH_ENABLED" env-default:"false" description:"Enable basic authentication"`
Credentials []Credential `json:"credentials" yaml:"credentials" description:"List of credentials for basic authentication"`
Realm string `json:"realm" yaml:"realm" env:"RC_AUTH_REALM" env-default:"RestClone" description:"Basic authentication realm"`
}
type Credential ¶
type Server ¶
type Server struct {
Listen string `json:"listen" yaml:"listen" env:"RC_LISTEN" env-default:":8080" description:"Server listen address"`
ListenTLS string `json:"listenTls" yaml:"listenTls" env:"RC_LISTEN_TLS" env-default:":8443" description:"Server TLS listen address"`
TLS Tls `json:"tls" yaml:"tls" description:"TLS configuration"`
Auth Auth `json:"auth" yaml:"auth" description:"Authentication configuration"`
Timeout int `json:"timeout" yaml:"timeout" env:"RC_TIMEOUT" env-default:"30" description:"Server timeout in seconds"`
ExtraEnv map[string]string `description:"Extra environment variables"`
// contains filtered or unexported fields
}
type Tls ¶
type Tls struct {
SelfsignedHostname string `json:"hostname" yaml:"hostname" env:"RC_HOSTNAME" description:"Server hostname"`
TLSCertFile string `json:"certFile" yaml:"certFile" env:"RC_TLS_CERT_FILE" description:"Path to the TLS certificate file"`
TLSKeyFile string `json:"keyFile" yaml:"keyFile" env:"RC_TLS_KEY_FILE" description:"Path to the TLS key file"`
TLSCAFile string `json:"caFile" yaml:"caFile" env:"RC_TLS_CA_FILE" description:"Path to the TLS CA file"`
TLSCert string `json:"tlsCert" yaml:"tlsCert" env:"RC_TLS_CERT" description:"TLS certificate"`
TLSKey string `json:"tlsKey" yaml:"tlsKey" env:"RC_TLS_KEY" description:"TLS key"`
TLSCA string `json:"tlsCa" yaml:"tlsCa" env:"RC_TLS_CA" description:"TLS CA"`
}
Click to show internal directories.
Click to hide internal directories.