fix(config): make builtin config can be used out of box
This commit is contained in:
parent
fa99d04897
commit
2e426bb1f1
1 changed files with 2 additions and 2 deletions
|
@ -102,11 +102,11 @@ func DefaultConfigStruct() *Config {
|
||||||
PredefinedUsers: []*db.UserCfg{},
|
PredefinedUsers: []*db.UserCfg{},
|
||||||
},
|
},
|
||||||
Secrets: &Secrets{
|
Secrets: &Secrets{
|
||||||
TokenSecret: "",
|
TokenSecret: "", // it will auto generated if it is left as empty
|
||||||
},
|
},
|
||||||
Server: &ServerCfg{
|
Server: &ServerCfg{
|
||||||
Debug: false,
|
Debug: false,
|
||||||
Host: "127.0.0.1",
|
Host: "0.0.0.0",
|
||||||
Port: 8686,
|
Port: 8686,
|
||||||
ReadTimeout: 2000,
|
ReadTimeout: 2000,
|
||||||
WriteTimeout: 1000 * 3600 * 24, // 1 day
|
WriteTimeout: 1000 * 3600 * 24, // 1 day
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue