17 lines
408 B
Python
17 lines
408 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+asyncpg://custodian:changeme@127.0.0.1:5432/custodian"
|
||
|
|
api_base: str = "http://127.0.0.1:8000"
|
||
|
|
debug: bool = False
|
||
|
|
|
||
|
|
|
||
|
|
settings = Settings()
|