fix(config): make builtin config can be used out of box

This commit is contained in:
hexxa 2022-05-06 20:06:56 +08:00 committed by Hexxa
parent fa99d04897
commit 2e426bb1f1

View file

@ -102,11 +102,11 @@ func DefaultConfigStruct() *Config {
PredefinedUsers: []*db.UserCfg{},
},
Secrets: &Secrets{
TokenSecret: "",
TokenSecret: "", // it will auto generated if it is left as empty
},
Server: &ServerCfg{
Debug: false,
Host: "127.0.0.1",
Host: "0.0.0.0",
Port: 8686,
ReadTimeout: 2000,
WriteTimeout: 1000 * 3600 * 24, // 1 day