Authentication for redis in prod management command

This commit is contained in:
Mouse Reeve 2021-03-25 11:34:49 -07:00
parent 6f37a43d33
commit b8695ae3b7

View file

@ -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,
)