Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { HttpListenAddr string `yaml:"http_listen_addr"` HttpsListenAddr string `yaml:"https_listen_addr"` MetricsListenAddr string `yaml:"metrics_listen_addr"` ServerUrl string `yaml:"server_url"` Tls Tls `yaml:"tls"` Logging Logging `yaml:"logging"` Keys Keys `yaml:"keys"` Database Database `yaml:"database"` }
func LoadConfig ¶
func (*Config) ReadServerKeys ¶
func (c *Config) ReadServerKeys() (*ServerKeys, error)
type ServerKeys ¶
type ServerKeys struct { SystemAdminKey key.MachinePrivate ControlKey key.MachinePrivate LegacyControlKey key.MachinePrivate }
type Tls ¶
type Tls struct { Disable bool `yaml:"disable"` CertFile string `yaml:"cert_file"` KeyFile string `yaml:"key_file"` CertMagicDomain string `yaml:"cert_magic_domain"` CertMagicEmail string `yaml:"cert_magic_email"` CertMagicCA string `yaml:"cert_magic_ca"` CertMagicStoragePath string `yaml:"cert_magic_storage_path"` }
Click to show internal directories.
Click to hide internal directories.