18 lines
650 B
Python
18 lines
650 B
Python
from pydantic_settings import BaseSettings, SettingsConfigDict
|
|
|
|
|
|
class Settings(BaseSettings):
|
|
model_config = SettingsConfigDict(env_file=".env", env_file_encoding="utf-8", extra="ignore")
|
|
|
|
database_url: str = "postgresql+psycopg://gendesign:gendesign@localhost:5432/gendesign"
|
|
redis_url: str = "redis://localhost:6379/0"
|
|
cors_origins: list[str] = ["http://localhost:3000"]
|
|
sentry_dsn: str | None = None
|
|
environment: str = "dev"
|
|
|
|
# External APIs (Stage 2)
|
|
rosreestr_pkk_base_url: str = "https://pkk.rosreestr.ru/api/features/1"
|
|
overpass_url: str = "https://overpass-api.de/api/interpreter"
|
|
|
|
|
|
settings = Settings()
|