fix(config): clean up configs and workflows
This commit is contained in:
parent
2f6aa33108
commit
4de972cb11
10 changed files with 15 additions and 62 deletions
|
@ -89,7 +89,7 @@ func DefaultConfigStruct() *Config {
|
|||
CookieTTL: 3600 * 24 * 7, // 1 week
|
||||
CookieSecure: false,
|
||||
CookieHttpOnly: true,
|
||||
MinUserNameLen: 4,
|
||||
MinUserNameLen: 3,
|
||||
MinPwdLen: 8,
|
||||
CaptchaWidth: 256,
|
||||
CaptchaHeight: 60,
|
||||
|
@ -121,7 +121,7 @@ func DefaultConfigStruct() *Config {
|
|||
Site: &db.SiteConfig{
|
||||
ClientCfg: &db.ClientConfig{
|
||||
SiteName: "Quickshare",
|
||||
SiteDesc: "quick and simple file sharing",
|
||||
SiteDesc: "Quick and simple file sharing",
|
||||
Bg: &db.BgConfig{
|
||||
Url: "/static/img/textured_paper.png",
|
||||
Repeat: "repeat",
|
||||
|
|
|
@ -165,7 +165,7 @@ func initDeps(cfg gocfg.ICfg) *depidx.Deps {
|
|||
err = siteStore.Init(&db.SiteConfig{
|
||||
ClientCfg: &db.ClientConfig{
|
||||
SiteName: cfg.StringOr("Site.ClientCfg.SiteName", "Quickshare"),
|
||||
SiteDesc: cfg.StringOr("Site.ClientCfg.SiteDesc", "quick and simple file sharing"),
|
||||
SiteDesc: cfg.StringOr("Site.ClientCfg.SiteDesc", "Quick and simple file sharing"),
|
||||
Bg: &db.BgConfig{
|
||||
Url: cfg.StringOr("Site.ClientCfg.Bg.Url", "/static/img/textured_paper.png"),
|
||||
Repeat: cfg.StringOr("Site.ClientCfg.Bg.Repeat", "repeat"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue