mirror of
https://github.com/mattermost/focalboard.git
synced 2025-01-23 18:34:02 +02:00
Add mapstructure for dbconfig in config.go
This commit is contained in:
parent
c218e5b637
commit
0b53e083dc
@ -8,13 +8,13 @@ import (
|
||||
|
||||
// Configuration is the app configuration stored in a json file
|
||||
type Configuration struct {
|
||||
ServerRoot string `json:"serverRoot"`
|
||||
Port int `json:"port"`
|
||||
DBType string `json:"dbtype"`
|
||||
DBConfigString string `json:"dbconfig"`
|
||||
UseSSL bool `json:"useSSL"`
|
||||
WebPath string `json:"webpath"`
|
||||
FilesPath string `json:"filespath"`
|
||||
ServerRoot string `json:"serverRoot" mapstructure:"serverRoot"`
|
||||
Port int `json:"port" mapstructure:"port"`
|
||||
DBType string `json:"dbtype" mapstructure:"dbtype"`
|
||||
DBConfigString string `json:"dbconfig" mapstructure:"dbconfig"`
|
||||
UseSSL bool `json:"useSSL" mapstructure:"useSSL"`
|
||||
WebPath string `json:"webpath" mapstructure:"webpath"`
|
||||
FilesPath string `json:"filespath" mapstructure:"filespath"`
|
||||
}
|
||||
|
||||
func readConfigFile() (*Configuration, error) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user