From 7b15e9755c47ec19f6b2802e642fb2da0cd209a2 Mon Sep 17 00:00:00 2001 From: Tim Schuster Date: Fri, 17 Mar 2017 11:56:20 +0100 Subject: [PATCH] Added basis for administration socket --- config/config.go | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/config/config.go b/config/config.go index 2f8cac3..b5791ba 100644 --- a/config/config.go +++ b/config/config.go @@ -42,8 +42,10 @@ type SiteConfig struct { } type DBConfig struct { - File string `yaml:"file"` - ReadOnly bool `yaml:"read_only"` + File string `yaml:"file"` + ReadOnly bool `yaml:"read_only"` + AdminSocketEnable bool `yaml:"enable_admin_socket"` + AdminSocketPath string `yaml:"admin_socket"` } func Load() (*Config, error) { @@ -54,8 +56,10 @@ func Load() (*Config, error) { Description: "NyxChan Default Configuration", }, DB: DBConfig{ - File: ":memory:", - ReadOnly: false, + File: ":memory:", + ReadOnly: false, + AdminSocketEnable: false, + AdminSocketPath: "./nyx.sock", }, HostnameWhiteList: []string{}, ListenOn: ":8080",