mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-24 01:27:49 +01:00
commit
e7ca62f15f
@ -67,6 +67,13 @@ func updateInitPassword(userID int, password string) error {
|
||||
func main() {
|
||||
|
||||
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")
|
||||
dao.InitDB()
|
||||
if err := updateInitPassword(adminUserID, os.Getenv("HARBOR_ADMIN_PASSWORD")); err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user