conf: overhaul database settings

This commit is contained in:
ᴜɴᴋɴᴡᴏɴ
2020-02-22 18:58:16 +08:00
parent c4a0a40473
commit 5efbde4fe9
15 changed files with 153 additions and 136 deletions

View File

@@ -200,13 +200,13 @@ func Config(c *context.Context) {
c.Data["Server"] = conf.Server
c.Data["SSH"] = conf.SSH
c.Data["Repository"] = conf.Repository
c.Data["Database"] = conf.Database
c.Data["LogRootPath"] = conf.LogRootPath
c.Data["ReverseProxyAuthUser"] = conf.ReverseProxyAuthUser
c.Data["HTTP"] = conf.HTTP
c.Data["DbCfg"] = db.DbCfg
c.Data["Service"] = conf.Service
c.Data["Webhook"] = conf.Webhook