fix: Fixed redis user
All checks were successful
Build and Push App Image / build-and-push (push) Successful in 1m48s
All checks were successful
Build and Push App Image / build-and-push (push) Successful in 1m48s
This commit is contained in:
@@ -54,6 +54,7 @@ func main() {
|
|||||||
redisAddr = "localhost:6379"
|
redisAddr = "localhost:6379"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
redisUser := os.Getenv("REDIS_USER")
|
||||||
redisPassword := os.Getenv("REDIS_PASSWORD")
|
redisPassword := os.Getenv("REDIS_PASSWORD")
|
||||||
redisDB := 0
|
redisDB := 0
|
||||||
if redisDBText := os.Getenv("REDIS_DB"); redisDBText != "" {
|
if redisDBText := os.Getenv("REDIS_DB"); redisDBText != "" {
|
||||||
@@ -85,6 +86,7 @@ func main() {
|
|||||||
|
|
||||||
redisClient := redis.NewClient(&redis.Options{
|
redisClient := redis.NewClient(&redis.Options{
|
||||||
Addr: redisAddr,
|
Addr: redisAddr,
|
||||||
|
Username: redisUser,
|
||||||
Password: redisPassword,
|
Password: redisPassword,
|
||||||
DB: redisDB,
|
DB: redisDB,
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user