Skip to content

Commit

Permalink
Merge pull request #695 from Amsterdam/redis/use-password
Browse files Browse the repository at this point in the history
use pass again
  • Loading branch information
NvdLaan authored Jun 28, 2024
2 parents 026e07c + 2a86fd1 commit 3470094
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions app/settings/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -429,17 +429,11 @@ def filter_traces(envelope):
# AZA for accessing TOP
SECRET_KEY_AZA_TOP = os.getenv("SECRET_KEY_AZA_TOP", None)


def get_redis_url():
REDIS_HOST = os.getenv("REDIS_HOST")
REDIS_PORT = os.getenv("REDIS_PORT")
REDIS_USERNAME = ""
REDIS_PASSWORD = os.getenv("REDIS_PASSWORD")
if "windows.net" in REDIS_HOST:
REDIS_USERNAME = os.getenv("REDIS_USERNAME")
REDIS_PASSWORD = azure.auth.redis_password
return f"rediss://{REDIS_USERNAME}:{REDIS_PASSWORD}@{REDIS_HOST}:{REDIS_PORT}"

return f"rediss://:{REDIS_PASSWORD}@{REDIS_HOST}:{REDIS_PORT}"

REDIS_URL = get_redis_url()
HEALTHCHECK_CELERY_PING_TIMEOUT = 5
Expand Down

0 comments on commit 3470094

Please sign in to comment.