diff --git a/reana_server/config.py b/reana_server/config.py index a3e5eda6..a38259f9 100644 --- a/reana_server/config.py +++ b/reana_server/config.py @@ -136,8 +136,10 @@ def _(x): # Accounts # ======== #: Redis URL -ACCOUNTS_SESSION_REDIS_URL = "redis://{host}:6379/1".format( - host=REANA_INFRASTRUCTURE_COMPONENTS_HOSTNAMES["cache"] +REANA_CACHE_PASSWORD = os.getenv("REANA_CACHE_PASSWORD", "") +ACCOUNTS_SESSION_REDIS_URL = "redis://:{password}@{host}:6379/1".format( + password=REANA_CACHE_PASSWORD, + host=REANA_INFRASTRUCTURE_COMPONENTS_HOSTNAMES["cache"], ) #: Email address used as sender of account registration emails. SECURITY_EMAIL_SENDER = SUPPORT_EMAIL