Files
backend/config/conf/channels.py
2025-12-02 17:23:13 +05:00

17 lines
367 B
Python

# type: ignore
from config.env import env
CHANNEL_LAYERS = {
"default": {
"BACKEND": "channels_redis.core.RedisChannelLayer",
"CONFIG": {
"hosts": [
(
env.str("REDIS_HOST", "redis"),
env.int("REDIS_PORT_6379_TCP_PORT", 6379)
)
],
},
},
}