Files
backend/config/conf/channels.py
A'zamov Samandar 256e80cc23 first commit
2025-11-21 14:41:16 +05:00

13 lines
266 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))],
},
},
}