Merge pull request #797 from mouse-reeve/auth-prod-redis-management

Authentication for redis in prod management command
This commit is contained in:
Mouse Reeve 2021-03-25 11:36:48 -07:00 committed by GitHub
commit 78467190a6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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