update
This commit is contained in:
@@ -34,6 +34,7 @@ var CONFIG = Web{
|
||||
Tls: false,
|
||||
Level: "debug",
|
||||
Addr: "127.0.0.1:8085",
|
||||
Domain: "http://127.0.0.1:8085",
|
||||
DbType: "mysql",
|
||||
TimeFormat: "2006-01-02 15:04:05",
|
||||
},
|
||||
@@ -88,6 +89,7 @@ type System struct {
|
||||
Tls bool `mapstructure:"tls" json:"tls" yaml:"tls"` // debug,release,test
|
||||
Level string `mapstructure:"level" json:"level" yaml:"level"` // debug,release,test
|
||||
Addr string `mapstructure:"addr" json:"addr" yaml:"addr"`
|
||||
Domain string `mapstructure:"domain" json:"domain" yaml:"domain"`
|
||||
StaticPrefix string `mapstructure:"static-prefix" json:"static-prefix" yaml:"static-prefix"`
|
||||
WebPrefix string `mapstructure:"web-prefix" json:"web-prefix" yaml:"web-prefix"`
|
||||
DbType string `mapstructure:"db-type" json:"db-type" yaml:"db-type"`
|
||||
@@ -198,6 +200,7 @@ func getViperConfig() viper_server.ViperConfig {
|
||||
"tls": ` + tls + `,
|
||||
"level": "` + CONFIG.System.Level + `",
|
||||
"addr": "` + CONFIG.System.Addr + `",
|
||||
"domain": "` + CONFIG.System.Domain + `",
|
||||
"db-type": "` + CONFIG.System.DbType + `",
|
||||
"time-format": "` + CONFIG.System.TimeFormat + `"
|
||||
}
|
||||
|
||||
@@ -28,6 +28,7 @@
|
||||
"session-timeout": 60,
|
||||
"system": {
|
||||
"addr": "127.0.0.1:8085",
|
||||
"domain": "http://127.0.0.1:8085",
|
||||
"db-type": "mysql",
|
||||
"level": "debug",
|
||||
"time-format": "2006-01-02 15:04:05",
|
||||
|
||||
@@ -28,6 +28,7 @@
|
||||
"session-timeout": 60,
|
||||
"system": {
|
||||
"addr": "127.0.0.1:8085",
|
||||
"domain": "http://127.0.0.1:8085",
|
||||
"db-type": "mysql",
|
||||
"level": "debug",
|
||||
"time-format": "2006-01-02 15:04:05",
|
||||
|
||||
Reference in New Issue
Block a user