server: use redis pubsub for interprocess websocket communication

This commit is contained in:
2023-10-25 16:56:43 +02:00
committed by Mathieu Virbel
parent 8bebb2a769
commit 00c06b7971
6 changed files with 183 additions and 52 deletions

View File

@@ -117,5 +117,9 @@ class Settings(BaseSettings):
CELERY_BROKER_URL: str = "redis://localhost:6379/1"
CELERY_RESULT_BACKEND: str = "redis://localhost:6379/1"
# Redis
REDIS_HOST: str = "localhost"
REDIS_PORT: int = 6379
settings = Settings()