21 lines
546 B
Python
21 lines
546 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://fleet:fleet@localhost:5432/fleet"
|
|
|
|
SECRET_KEY: str = "change-me"
|
|
ENCRYPTION_KEY: str = "change-me"
|
|
|
|
ACCESS_TOKEN_EXPIRE_SECONDS: int = 900
|
|
REFRESH_TOKEN_EXPIRE_DAYS: int = 7
|
|
|
|
APP_ENV: str = "development"
|
|
DEBUG: bool = False
|
|
|
|
SQLALCHEMY_LOG: bool = False
|
|
|
|
|
|
settings = Settings()
|