Files
html/generated/file_01.py
2026-04-12 22:57:03 +02:00

15 lines
532 B
Python
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# config.py une seule source de vérité
import os, pathlib, datetime as dt
from pydantic import BaseSettings
class Settings(BaseSettings):
PROJECT_NAME: str = "wevia-erp"
API_V1: str = "/api/v1"
DB_URL: str = os.getenv("DB_URL", "sqlite:///./erp.db")
JWT_SECRET: str = os.getenv("JWT_SECRET", "change-me")
ACCESS_TOKEN_EXPIRE: dt.timedelta = dt.timedelta(hours=8)
CORS_ORIGINS: list = ["http://localhost:3000", "http://localhost:5173"]
class Config:
env_file = ".env"
settings = Settings()