Skip to content

Commit 6fa5c01

Browse files
committed
Add redis config params
1 parent 453f002 commit 6fa5c01

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

synapse/handlers/vaccount_auth/auth_provider.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,11 @@ class VaccountAuthProvider:
4848
def __init__(self, config, account_handler: ModuleApi):
4949
self.account_handler = account_handler
5050
self.store: DataStore = account_handler._hs.get_datastore()
51-
self.redis = Redis()
51+
self.redis = Redis(
52+
host=config.get('REDIS_HOSTNAME'),
53+
port=config.get('REDIS_PORT'),
54+
password=config.get('REDIS_PASSWORD'),
55+
)
5256

5357
@staticmethod
5458
def get_supported_login_types():

0 commit comments

Comments
 (0)