groupe-meditation/backend/app/core/config.py
2026-03-04 14:01:00 -05:00

23 lines
680 B
Python

"""Configuration de l'application."""
from pydantic_settings import BaseSettings
from typing import List
class Settings(BaseSettings):
DATABASE_URL: str = "postgresql+asyncpg://grpmed:grpmed2026@localhost: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.chezlepro.ca",
]
INVITATION_EXPIRE_HOURS: int = 48
class Config:
env_file = ".env"
env_file_encoding = "utf-8"
settings = Settings()