21 lines
548 B
Python
21 lines
548 B
Python
from __future__ import annotations
|
|
|
|
from pydantic_settings import BaseSettings, SettingsConfigDict
|
|
|
|
|
|
class Settings(BaseSettings):
|
|
model_config = SettingsConfigDict(env_file=".env", extra="ignore")
|
|
|
|
app_name: str = "ConnectHub"
|
|
data_dir: str = "/data"
|
|
db_url: str = "postgresql+psycopg://connecthub:connecthub_pwd_change_me@postgres:5432/connecthub"
|
|
redis_url: str = "redis://redis:6379/0"
|
|
fernet_key_path: str = "/data/fernet.key"
|
|
dev_mode: bool = False
|
|
log_dir: str | None = "/data/logs"
|
|
|
|
|
|
settings = Settings()
|
|
|
|
|