Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

fix redis configuration

jonaswinklerd2a8bc5c4c9e
diff --git a/src/paperless/settings.py b/src/paperless/settings.py
index b36ab6cf1..678ce5a21 100644
--- a/src/paperless/settings.py
+++ b/src/paperless/settings.py
@@ -160,7 +160,7 @@ CHANNEL_LAYERS = {
"default": {
"BACKEND": "channels_redis.core.RedisChannelLayer",
"CONFIG": {
- "hosts": ["redis://localhost:6379"],
+ "hosts": [os.getenv("PAPERLESS_REDIS", "redis://localhost:6379")],
},
},
}