2026-03-04 22:01:58 +03:00
|
|
|
from pydantic_settings import BaseSettings
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class Settings(BaseSettings):
|
|
|
|
|
DATABASE_URL: str = "mysql+pymysql://evosync:evosync@localhost:3306/evosync"
|
|
|
|
|
SECRET_KEY: str = "change-me-in-production"
|
|
|
|
|
BASE_URL: str = "http://localhost:8000"
|
|
|
|
|
PASSWORD_RESET_EXPIRE_MINUTES: int = 60
|
|
|
|
|
|
2026-03-05 21:33:41 +03:00
|
|
|
EVOTOR_CLIENT_ID: str = ""
|
|
|
|
|
EVOTOR_CLIENT_SECRET: str = ""
|
|
|
|
|
EVOTOR_SCOPES: str = "store:read product:read"
|
|
|
|
|
|
2026-03-06 15:26:49 +03:00
|
|
|
HEALTH_CHECK_INTERVAL_SECONDS: int = 600
|
|
|
|
|
|
2026-03-06 15:29:42 +03:00
|
|
|
VK_CLIENT_ID: str = ""
|
|
|
|
|
VK_CLIENT_SECRET: str = ""
|
|
|
|
|
VK_SCOPES: str = "market groups offline"
|
|
|
|
|
VK_API_VERSION: str = "5.131"
|
|
|
|
|
|
2026-03-05 21:33:41 +03:00
|
|
|
# Docker compose vars (ignored in app, kept for env compatibility)
|
|
|
|
|
DB_ROOT_PASSWORD: str = ""
|
|
|
|
|
DB_NAME: str = ""
|
|
|
|
|
DB_USER: str = ""
|
|
|
|
|
DB_PASSWORD: str = ""
|
|
|
|
|
|
2026-03-05 21:05:30 +03:00
|
|
|
model_config = {"env_file": ".env", "case_sensitive": False}
|
2026-03-04 22:01:58 +03:00
|
|
|
|
|
|
|
|
|
|
|
|
|
settings = Settings()
|