aee0f09db8
- Datafabrik: Dockerfile fix, agentorkestrering fungerar - Vision: Identify-modell, FAISS, OCR alla testade - API: Alla 7 integrationstester passerade - Upplösare: Entitetsupplösning verifierad
34 lines
875 B
Python
34 lines
875 B
Python
"""Konfiguration för LandveX user management modul."""
|
|
from pydantic_settings import BaseSettings
|
|
from functools import lru_cache
|
|
|
|
|
|
class Settings(BaseSettings):
|
|
APP_NAME: str = "LandveX User Management"
|
|
DEBUG: bool = False
|
|
|
|
# Database
|
|
DATABASE_URL: str = "postgresql+asyncpg://postgres:postgres@localhost:5432/landvex"
|
|
|
|
# JWT
|
|
SECRET_KEY: str = "change-me-in-production-landvex-secret-key-2024"
|
|
ALGORITHM: str = "HS256"
|
|
ACCESS_TOKEN_EXPIRE_MINUTES: int = 30
|
|
REFRESH_TOKEN_EXPIRE_DAYS: int = 7
|
|
|
|
# Invitation
|
|
INVITATION_TOKEN_EXPIRE_HOURS: int = 48
|
|
FRONTEND_SET_PASSWORD_URL: str = "https://admin.landvex.se/set-password"
|
|
|
|
# Password policy
|
|
MIN_PASSWORD_LENGTH: int = 8
|
|
|
|
class Config:
|
|
env_file = ".env"
|
|
env_file_encoding = "utf-8"
|
|
|
|
|
|
@lru_cache()
|
|
def get_settings() -> Settings:
|
|
return Settings()
|