feat: add redis and redis settings

This commit is contained in:
2025-03-20 12:32:16 +05:00
parent 2dc50465ce
commit a6c7819e36
3 changed files with 23 additions and 3 deletions

View File

@@ -38,6 +38,11 @@ class DefaultSettings(BaseSettings):
BROKER_PASSWORD: str = environ.get("BROKER_PASSWORD", "guest")
BROKER_RABBITMQ_VHOST: str = environ.get("BROKER_RABBITMQ_VHOST", "")
REDIS_HOST: str = environ.get("REDIS_HOST", "localhost")
REDIS_PORT: int = int(environ.get("REDIS_PORT", "6379"))
REDIS_DB: int = int(environ.get("REDIS_DB", "0"))
REDIS_PASSWORD: str = environ.get("REDIS_PASSWORD", "hackme")
class Config:
# env_file = "../.env"
env_file_encoding = "utf-8"