Skip to content

Commit

Permalink
feat(config): support password-protected redis
Browse files Browse the repository at this point in the history
  • Loading branch information
mdonadoni authored and tiborsimko committed Nov 18, 2024
1 parent ac83081 commit 68515e4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions reana_server/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 68515e4

Please sign in to comment.