This commit is contained in:
2022-01-29 18:49:45 +03:00
commit 87108fb1bd
12 changed files with 625 additions and 0 deletions

21
src/core/config.py Normal file
View File

@@ -0,0 +1,21 @@
from pydantic import BaseSettings
class EnvConfig(BaseSettings):
API_KEY: str
POSTGRES_DB_NAME: str
POSTGRES_HOST: str
POSTGRES_PORT: int
POSTGRES_USER: str
POSTGRES_PASSWORD: str
REDIS_HOST: str
REDIS_PORT: int
REDIS_DB: int
MEILI_HOST: str
MEILI_MASTER_KEY: str
env_config = EnvConfig()