diff options
Diffstat (limited to 'server/config/config.go')
-rw-r--r-- | server/config/config.go | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/server/config/config.go b/server/config/config.go index 21fba94..3d12665 100644 --- a/server/config/config.go +++ b/server/config/config.go @@ -8,9 +8,10 @@ import ( // Config holds the values from the json config file. type Config struct { - Server Server `mapstructure:"server"` - Auth Auth `mapstructure:"auth"` - SSH SSH `mapstructure:"ssh"` + Server Server `mapstructure:"server"` + Auth Auth `mapstructure:"auth"` + SSH SSH `mapstructure:"ssh"` + Database Database `mapstructure:"database"` } // Server holds the configuration specific to the web server and sessions. @@ -22,6 +23,15 @@ type Server struct { CookieSecret string `mapstructure:"cookie_secret"` } +// Database holds the configuration specific to database functions. +type Database struct { + DbType string `mapstructure:"dbtype"` + Host string `mapstructure:"host"` + User string `mapstructure:"user"` + Password string `mapstructure:"password"` + DB string `mapstructure:"db"` +} + // Auth holds the configuration specific to the OAuth provider. type Auth struct { OauthClientID string `mapstructure:"oauth_client_id"` |