From b8695ae3b7170885c5fb29a8d90b7f51f6411b25 Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Thu, 25 Mar 2021 11:34:49 -0700 Subject: [PATCH] Authentication for redis in prod management command --- bookwyrm/management/commands/rebuild_feeds.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bookwyrm/management/commands/rebuild_feeds.py b/bookwyrm/management/commands/rebuild_feeds.py index 70d4dd981..2fd38fa96 100644 --- a/bookwyrm/management/commands/rebuild_feeds.py +++ b/bookwyrm/management/commands/rebuild_feeds.py @@ -5,7 +5,10 @@ import redis from bookwyrm import activitystreams, models, settings r = redis.Redis( - host=settings.REDIS_ACTIVITY_HOST, port=settings.REDIS_ACTIVITY_PORT, db=0 + host=settings.REDIS_ACTIVITY_HOST, + port=settings.REDIS_ACTIVITY_PORT, + password=settings.REDIS_ACTIVITY_PASSWORD, + db=0, )