Initial clean commit of the project
This commit is contained in:
18
app/core/config.py
Normal file
18
app/core/config.py
Normal file
@@ -0,0 +1,18 @@
|
||||
from pydantic_settings import BaseSettings, SettingsConfigDict
|
||||
|
||||
class Settings(BaseSettings):
|
||||
# Учетные данные приложения Яндекс.OAuth
|
||||
YANDEX_CLIENT_ID: str
|
||||
YANDEX_CLIENT_SECRET: str
|
||||
|
||||
# URL API Яндекс.Метрики
|
||||
YANDEX_METRIKA_API_URL: str = "https://api-metrika.yandex.net"
|
||||
|
||||
# Уровень логирования
|
||||
LOG_LEVEL: str = "INFO"
|
||||
|
||||
# Указываем, что нужно читать переменные из файла .env
|
||||
model_config = SettingsConfigDict(env_file=".env")
|
||||
|
||||
# Создаем единый объект настроек для всего приложения
|
||||
settings = Settings()
|
||||
Reference in New Issue
Block a user