From aef6dd2761c460f826d165cd845e0ecffd29ed39 Mon Sep 17 00:00:00 2001 From: Thastertyn Date: Thu, 28 Mar 2024 21:22:23 +0100 Subject: [PATCH] Added password for redis --- app/config.py | 1 + app/extensions.py | 1 + 2 files changed, 2 insertions(+) diff --git a/app/config.py b/app/config.py index 66801d3..101f7ea 100644 --- a/app/config.py +++ b/app/config.py @@ -10,6 +10,7 @@ class MySqlConfig: class RedisConfig: REDIS_HOST = os.environ.get('REDIS_HOST') REDIS_PORT = os.environ.get('REDIS_PORT') + REDIS_PASSWORD = os.environ.get('REDIS_PASSWORD') class FlaskProduction: DEBUG = False diff --git a/app/extensions.py b/app/extensions.py index 7813fb2..7a370e2 100644 --- a/app/extensions.py +++ b/app/extensions.py @@ -15,6 +15,7 @@ db_connection = mysql.connector.connect( jwt_redis_blocklist = redis.StrictRedis( host=RedisConfig.REDIS_HOST, port=RedisConfig.REDIS_PORT, + password=RedisConfig.REDIS_PASSWORD, db=0, decode_responses=True )