groupe-meditation/backend/app/core/config.py
2026-04-17 04:04:04 -04:00

26 lines
778 B
Python

"""Configuration de l'application."""
from pathlib import Path
from pydantic_settings import BaseSettings
from typing import List
_ENV_FILE = Path(__file__).resolve().parent.parent.parent / ".env"
class Settings(BaseSettings):
DATABASE_URL: str = "postgresql+asyncpg://grpmed:grpmed2026@127.0.0.1:5432/groupe_meditation"
JWT_SECRET: str = "changez-moi-en-production-clef-secrete-64-caracteres-minimum"
JWT_ALGORITHM: str = "HS256"
JWT_EXPIRE_DAYS: int = 30
CORS_ORIGINS: List[str] = [
"http://localhost:5173",
"http://localhost:3000",
"https://groupe-meditation.87-16.org",
]
INVITATION_EXPIRE_HOURS: int = 48
class Config:
env_file = str(_ENV_FILE)
env_file_encoding = "utf-8"
settings = Settings()