Added basis for administration socket

This commit is contained in:
Tim Schuster 2017-03-17 11:56:20 +01:00
parent 1f92223497
commit 7b15e9755c
No known key found for this signature in database
GPG Key ID: F9E27097EFB77F61
1 changed files with 8 additions and 4 deletions

View File

@ -44,6 +44,8 @@ type SiteConfig struct {
type DBConfig struct {
File string `yaml:"file"`
ReadOnly bool `yaml:"read_only"`
AdminSocketEnable bool `yaml:"enable_admin_socket"`
AdminSocketPath string `yaml:"admin_socket"`
}
func Load() (*Config, error) {
@ -56,6 +58,8 @@ func Load() (*Config, error) {
DB: DBConfig{
File: ":memory:",
ReadOnly: false,
AdminSocketEnable: false,
AdminSocketPath: "./nyx.sock",
},
HostnameWhiteList: []string{},
ListenOn: ":8080",