feat: persist encrypted env

This commit is contained in:
Lakhan Samani
2021-12-31 13:52:10 +05:30
parent d9c40057e6
commit e35d0cbcd6
41 changed files with 751 additions and 298 deletions

View File

@@ -95,9 +95,9 @@ func RemoveSocialLoginState(key string) {
}
func InitSession() {
if constants.REDIS_URL != "" {
if constants.EnvData.REDIS_URL != "" {
log.Println("using redis store to save sessions")
opt, err := redis.ParseURL(constants.REDIS_URL)
opt, err := redis.ParseURL(constants.EnvData.REDIS_URL)
if err != nil {
log.Fatalln("Error parsing redis url:", err)
}