summary refs log tree commit diff stats
path: root/init.go
diff options
context:
space:
mode:
Diffstat (limited to 'init.go')
-rw-r--r--init.go10
1 files changed, 8 insertions, 2 deletions
diff --git a/init.go b/init.go
index 2069ceb..f871a72 100644
--- a/init.go
+++ b/init.go
@@ -73,8 +73,11 @@ func initConfig() {
 
 	confObj.port = viper.GetInt("port")
 	confObj.logfile = viper.GetString("logfile")
-	confObj.twtxtfile = viper.GetString("twtxtfile")
 	confObj.stdoutLogging = viper.GetBool("stdoutLogging")
+	confObj.instance.name = viper.GetString("instance.name")
+	confObj.instance.url = viper.GetString("instance.url")
+	confObj.instance.owner = viper.GetString("instance.owner")
+	confObj.instance.mail = viper.GetString("instance.mail")
 }
 
 func initLogging() {
@@ -117,8 +120,11 @@ func rebindConfig() {
 	// reassign values to the config object
 	confObj.port = viper.GetInt("port")
 	confObj.logfile = viper.GetString("logfile")
-	confObj.twtxtfile = viper.GetString("twtxtfile")
 	confObj.stdoutLogging = viper.GetBool("stdoutLogging")
+	confObj.instance.name = viper.GetString("instance.name")
+	confObj.instance.url = viper.GetString("instance.url")
+	confObj.instance.owner = viper.GetString("instance.owner")
+	confObj.instance.mail = viper.GetString("instance.mail")
 
 	// reinitialize logging
 	initLogging()