Added password for redis
This commit is contained in:
parent
7342516ce7
commit
aef6dd2761
@ -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
|
||||
|
@ -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
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user