mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-20 07:37:38 +01:00
commit
e7ca62f15f
@ -67,6 +67,13 @@ func updateInitPassword(userID int, password string) error {
|
|||||||
func main() {
|
func main() {
|
||||||
|
|
||||||
beego.BConfig.WebConfig.Session.SessionOn = true
|
beego.BConfig.WebConfig.Session.SessionOn = true
|
||||||
|
//TODO
|
||||||
|
redisURL := os.Getenv("_REDIS_URL")
|
||||||
|
if len(redisURL) > 0 {
|
||||||
|
beego.BConfig.WebConfig.Session.SessionProvider = "redis"
|
||||||
|
beego.BConfig.WebConfig.Session.SessionProviderConfig = redisURL
|
||||||
|
}
|
||||||
|
//
|
||||||
beego.AddTemplateExt("htm")
|
beego.AddTemplateExt("htm")
|
||||||
dao.InitDB()
|
dao.InitDB()
|
||||||
if err := updateInitPassword(adminUserID, os.Getenv("HARBOR_ADMIN_PASSWORD")); err != nil {
|
if err := updateInitPassword(adminUserID, os.Getenv("HARBOR_ADMIN_PASSWORD")); err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user