mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-05 04:09:25 +02:00
Fix #640: support connecting with to a password protected redis server
This commit is contained in:
parent
ab7c9d511c
commit
d27ea30b26
4 changed files with 9 additions and 5 deletions
|
@ -13,7 +13,7 @@ from __future__ import absolute_import, unicode_literals
|
|||
import datetime
|
||||
import logging
|
||||
|
||||
from urllib.parse import urlparse, urlsplit
|
||||
from urllib.parse import urlsplit
|
||||
|
||||
import environ
|
||||
from celery.schedules import crontab
|
||||
|
@ -420,11 +420,10 @@ CACHES = {
|
|||
|
||||
CACHES["default"]["BACKEND"] = "django_redis.cache.RedisCache"
|
||||
|
||||
cache_url = urlparse(CACHES["default"]["LOCATION"])
|
||||
CHANNEL_LAYERS = {
|
||||
"default": {
|
||||
"BACKEND": "channels_redis.core.RedisChannelLayer",
|
||||
"CONFIG": {"hosts": [(cache_url.hostname, cache_url.port)]},
|
||||
"CONFIG": {"hosts": [CACHES["default"]["LOCATION"]]},
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue