Skip to content

Commit

Permalink
username/pass for broker url
Browse files Browse the repository at this point in the history
  • Loading branch information
leftmove committed Jun 28, 2024
1 parent a42d281 commit c8d5867
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion backend/routers/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@

REDIS_SERVER_URL = os.environ.get("REDIS_SERVER_URL", "cache")
REDIS_PORT = os.environ.get("REDIS_PORT", 6379)
BROKER = f"redis://{REDIS_SERVER_URL}:{REDIS_PORT}/0"
REDIS_USERNAME = os.environ.get("REDIS_USERNAME", "default")
REDIS_PASSWORD = os.environ.get("REDIS_PASSWORD", "")
BROKER = f"redis://{REDIS_USERNAME}:{REDIS_PASSWORD}@{REDIS_SERVER_URL}:{REDIS_PORT}/0"

SENTRY_DSN = os.environ.get("SENTRY_DSN", "")
WORKERS = int(os.environ.get("WORKERS", ((multiprocessing.cpu_count() * 2) + 1)))
TELEMETRY = bool(os.environ.get("TELEMETRY", False))
Expand Down

0 comments on commit c8d5867

Please sign in to comment.