13 lines
431 B
Python
13 lines
431 B
Python
# app/core/config.py
|
|
from pydantic_settings import BaseSettings, SettingsConfigDict
|
|
|
|
class Settings(BaseSettings):
|
|
YANDEX_CLIENT_ID: str
|
|
YANDEX_CLIENT_SECRET: str
|
|
YANDEX_METRIKA_API_URL: str = "https://api-metrika.yandex.net"
|
|
LOG_LEVEL: str = "INFO"
|
|
|
|
# Возвращаем простую и надежную конфигурацию
|
|
model_config = SettingsConfigDict(env_file=".env")
|
|
|
|
settings = Settings() |