Initialise redis connection for Fastapi limiter

This commit is contained in:
kiritowu
2023-01-02 08:04:59 +08:00
parent 4e9a3ee292
commit 144a5bc424
2 changed files with 30 additions and 0 deletions
+4
View File
@@ -15,6 +15,10 @@ class Settings(BaseSettings):
POSTGRES_DB: str = "postgres"
DATABASE_URI: Optional[PostgresDsn] = None
RATE_LIMIT: bool = True
REDIS_HOST: str = "localhost"
REDIS_PORT: str = "6379"
DEBUG_ALLOW_ANY_API_KEY: bool = False
DEBUG_SKIP_API_KEY_CHECK: bool = False
DEBUG_USE_SEED_DATA: bool = False