Documentation
¶
Index ¶
Constants ¶
View Source
const ( AuthRoleAdmin = "admin" AuthRoleViewer = "viewer" )
View Source
const DefaultAdminListenAddr = "127.0.0.1:19090"
View Source
const DefaultLogFormat = "text"
View Source
const DefaultLogLevel = "info"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthConfig ¶
type AuthConfig struct {
Enabled bool `json:"enabled" yaml:"enabled"`
Tokens []AuthToken `json:"tokens,omitempty" yaml:"tokens,omitempty"`
}
AuthConfig controls Admin API bearer-token authentication.
type AuthToken ¶
type AuthToken struct {
Name string `json:"name,omitempty" yaml:"name,omitempty"`
Token string `json:"token" yaml:"token"`
Role string `json:"role,omitempty" yaml:"role,omitempty"`
}
AuthToken is one Admin API bearer token. Token values are secrets and must not be logged.
type CertReviewConfig ¶
type CertReviewConfig struct {
ExpiryWarningDays int `json:"expiry_warning_days,omitempty" yaml:"expiry_warning_days,omitempty"`
ExpiryCriticalDays int `json:"expiry_critical_days,omitempty" yaml:"expiry_critical_days,omitempty"`
MinRSABits int `json:"min_rsa_bits,omitempty" yaml:"min_rsa_bits,omitempty"`
}
CertReviewConfig controls certificate review thresholds.
type DNS01Config ¶
type DNS01Config struct {
Provider string `json:"provider,omitempty" yaml:"provider,omitempty"`
PropagationTimeout string `json:"propagation_timeout,omitempty" yaml:"propagation_timeout,omitempty"`
PollingInterval string `json:"polling_interval,omitempty" yaml:"polling_interval,omitempty"`
CloudflareAPIToken string `json:"cloudflare_api_token,omitempty" yaml:"cloudflare_api_token,omitempty"`
RFC2136Nameserver string `json:"rfc2136_nameserver,omitempty" yaml:"rfc2136_nameserver,omitempty"`
RFC2136TSIGAlgorithm string `json:"rfc2136_tsig_algorithm,omitempty" yaml:"rfc2136_tsig_algorithm,omitempty"`
RFC2136TSIGKey string `json:"rfc2136_tsig_key,omitempty" yaml:"rfc2136_tsig_key,omitempty"`
RFC2136TSIGSecret string `json:"rfc2136_tsig_secret,omitempty" yaml:"rfc2136_tsig_secret,omitempty"`
ExecPath string `json:"exec_path,omitempty" yaml:"exec_path,omitempty"`
}
DNS01Config configures DNS-01 ACME challenge solving.
type File ¶
type File struct {
Version int `json:"version" yaml:"version"`
AdminListenAddr string `json:"admin_listen_addr" yaml:"admin_listen_addr"`
Log LogConfig `json:"log,omitempty" yaml:"log,omitempty"`
Auth AuthConfig `json:"auth,omitempty" yaml:"auth,omitempty"`
BotToken string `json:"bot_token,omitempty" yaml:"bot_token,omitempty"`
BotChat int64 `json:"bot_chat,omitempty" yaml:"bot_chat,omitempty"`
AcmeChallenge string `json:"acme_challenge,omitempty" yaml:"acme_challenge,omitempty"`
AcmeHTTP01Addr string `json:"acme_http01_addr,omitempty" yaml:"acme_http01_addr,omitempty"`
AcmeCacheDir string `json:"acme_cache_dir,omitempty" yaml:"acme_cache_dir,omitempty"`
AcmeDNS01 DNS01Config `json:"acme_dns01,omitempty" yaml:"acme_dns01,omitempty"`
CertCacheDir string `json:"cert_cache_dir,omitempty" yaml:"cert_cache_dir,omitempty"`
CertReview CertReviewConfig `json:"cert_review,omitempty" yaml:"cert_review,omitempty"`
Rules []engine.Rule `json:"rules" yaml:"rules"`
}
Click to show internal directories.
Click to hide internal directories.