diff config/config.go @ 386:999f4f83a072

Configure GeoServer via REST-API. TODO: Configure layers.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Mon, 13 Aug 2018 13:41:08 +0200
parents 3cfab707f909
children f24ed1d570c7
line wrap: on
line diff
--- a/config/config.go	Mon Aug 13 11:17:56 2018 +0200
+++ b/config/config.go	Mon Aug 13 13:41:08 2018 +0200
@@ -25,6 +25,9 @@
 func ServiceUser() string     { return viper.GetString("service-user") }
 func ServicePassword() string { return viper.GetString("service-password") }
 
+func SysAdmin() string         { return viper.GetString("sys-admin") }
+func SysAdminPassword() string { return viper.GetString("sys-admin-password") }
+
 func MailHost() string     { return viper.GetString("mail-host") }
 func MailPort() uint       { return uint(viper.GetInt32("mail-port")) }
 func MailUser() string     { return viper.GetString("mail-user") }
@@ -96,6 +99,9 @@
 	str("service-user", "postgres", "user to do service tasks")
 	str("service-password", "", "password of user to do service tasks")
 
+	str("sys-admin", "postgres", "user to do admin tasks")
+	str("sys-admin-password", "", "password of user to do admin tasks")
+
 	str("mail-host", "localhost", "server to send mail with")
 	ui("mail-port", 465, "port of server to send mail with")
 	str("mail-user", "gemma", "user to send mail with")