This commit is contained in:
Andros Fenollosa
2024-11-07 16:20:51 +01:00
parent d8ffe60909
commit bbcdbafba0
5 changed files with 63 additions and 8 deletions

View File

@ -43,11 +43,14 @@ INSTALLED_APPS = [
'channels', # Servidor de WebSockets
]
REDIS_HOST = "redis"
REDIS_PORT = 6379
CHANNEL_LAYERS = {
"default": {
"BACKEND": "channels_redis.core.RedisChannelLayer",
"CONFIG": {
"hosts": [("redis", 6379)],
"hosts": [(REDIS_HOST, REDIS_PORT)],
},
},
}
@ -61,8 +64,8 @@ HUEY = {
'utc': False,
'blocking': True,
'connection': {
'host': 'redis',
'port': 6379,
'host': REDIS_HOST,
'port': REDIS_PORT,
'db': 0,
'connection_pool': None,
'read_timeout': 1,