fix: Fixed redis user
All checks were successful
Build and Push App Image / build-and-push (push) Successful in 1m48s

This commit is contained in:
domrichardson
2026-03-26 10:10:07 +00:00
parent 6e642da57a
commit 94f11be77c

View File

@@ -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,
}) })