Documentation
¶
Index ¶
- func DNSProviderConfigured() bool
- func GetBool(key string, defaultValue bool) bool
- func GetString(key, defaultValue string) string
- func KeepAliveInterval() time.Duration
- func MagicDNSSuffix() string
- type Auth
- type AuthProvider
- type Config
- type DNS
- type DNSProvider
- type Database
- type Keys
- type Logging
- type PollNet
- type ServerKeys
- type SystemAdminPolicy
- type Tls
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DNSProviderConfigured ¶ added in v0.6.0
func DNSProviderConfigured() bool
func KeepAliveInterval ¶
func MagicDNSSuffix ¶ added in v0.2.0
func MagicDNSSuffix() string
Types ¶
type Auth ¶ added in v0.3.0
type Auth struct { Provider AuthProvider `yaml:"provider,omitempty" envPrefix:"PROVIDER_"` SystemAdminPolicy SystemAdminPolicy `yaml:"system_admins"` }
type AuthProvider ¶
type Config ¶
type Config struct { HttpListenAddr string `yaml:"http_listen_addr,omitempty" env:"HTTP_LISTEN_ADDR"` HttpsListenAddr string `yaml:"https_listen_addr,omitempty" env:"HTTPS_LISTEN_ADDR"` MetricsListenAddr string `yaml:"metrics_listen_addr,omitempty" env:"METRICS_LISTEN_ADDR"` ServerUrl string `yaml:"server_url,omitempty" env:"SERVER_URL"` Tls Tls `yaml:"tls,omitempty" envPrefix:"TLS_"` PollNet PollNet `yaml:"poll_net,omitempty" envPrefix:"POLL_NET_"` Keys Keys `yaml:"keys,omitempty" envPrefix:"KEYS_"` Database Database `yaml:"database,omitempty" envPrefix:"DB_"` Auth Auth `yaml:"auth,omitempty" envPrefix:"AUTH_"` DNS DNS `yaml:"dns,omitempty"` Logging Logging `yaml:"logging,omitempty" envPrefix:"LOGGING_"` }
func LoadConfig ¶
func (*Config) ReadServerKeys ¶
func (c *Config) ReadServerKeys(defaultKeys *domain.ControlKeys) (*ServerKeys, error)
type DNS ¶ added in v0.2.0
type DNS struct { MagicDNSSuffix string `yaml:"magic_dns_suffix"` Provider DNSProvider `yaml:"provider,omitempty"` }
type DNSProvider ¶ added in v0.3.0
type ServerKeys ¶
type ServerKeys struct { SystemAdminKey *key.ServerPrivate ControlKey tkey.MachinePrivate LegacyControlKey tkey.MachinePrivate }
type SystemAdminPolicy ¶
type Tls ¶
type Tls struct { Disable bool `yaml:"disable" env:"DISABLE"` ForceHttps bool `yaml:"force_https" env:"FORCE_HTTPS"` CertFile string `yaml:"cert_file,omitempty" env:"CERT_FILE"` KeyFile string `yaml:"key_file,omitempty" env:"KEY_FILE"` AcmeEnabled bool `yaml:"acme,omitempty" env:"ACME_ENABLED"` AcmeEmail string `yaml:"acme_email,omitempty" env:"ACME_EMAIL"` AcmeCA string `yaml:"acme_ca,omitempty" env:"ACME_CA"` AcmePath string `yaml:"acme_path,omitempty" env:"ACME_PATH"` }
Click to show internal directories.
Click to hide internal directories.