Files
MokPyo/.env.sample
2025-08-19 18:20:37 +02:00

90 lines
1.9 KiB
Plaintext
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.

# =========================
# ENVIRONMENT CONFIGURATION
# =========================
ENV=dev # dev, prod
# =========================
# DATABASE CONFIGURATION
# =========================
# connexion SQLAlchemy
DATABASE_HOST=localhost
DATABASE_PORT=3306
DATABASE_USER=user
DATABASE_PASSWORD=password
DATABASE_NAME=mokpyo
# Pooling / Options SQLAlchemy (optionnel)
# MAX_CONNECTIONS=10
# MIN_CONNECTIONS=1
# POOL_RECYCLE=3600
# =========================
# FASTAPI SETTINGS
# =========================
# Debug mode (True/False)
DEBUG=True
# Nom et version de lAPI
APP_TITLE=MokPyo
APP_VERSION=1.0.0
APP_DESCRIPTION=MokPyo
APP_DOMAIN=localhost # change in production with your domain (ex: mokpyo.com)
# =========================
# SERVER CONFIGURATION
# =========================
# Host et port de lAPI
HOST=0.0.0.0
PORT=8000
# =========================
# SECURITY / AUTH
# =========================
# Clé secrète pour JWT
SECRET_KEY=change_me_to_a_long_random_string
# Expiration des tokens JWT en minutes
ACCESS_TOKEN_EXPIRE_MINUTES=30
# Algorithme de chiffrement JWT
ALGORITHM=HS256
# Use SSL (True/False)
# You need to set USE_SSL=True if you use HTTPS
USE_SSL=False
# =========================
# EMAIL / VALIDATION
# =========================
# SMTP Server (pour envoyer emails, si nécessaire)
SMTP_HOST=smtp.example.com
SMTP_PORT=587
SMTP_USER=your_email@example.com
SMTP_PASSWORD=super_secret_password
EMAIL_FROM=no-reply@example.com
# =========================
# LOGGING
# =========================
# Niveau de log : DEBUG, INFO, WARNING, ERROR, CRITICAL
LOG_LEVEL=INFO
LOG_FILE=logs/app.log
# =========================
# STATIC FILES / FRONTEND
# =========================
# Répertoire static
STATIC_DIR=app/static
# =========================
# OPTIONAL / CUSTOM
# =========================
# Nombre de workers uvicorn
UVICORN_WORKERS=4
# Limite upload fichiers (en bytes)
MAX_UPLOAD_SIZE=10485760 # 10MB
# Mode ORJSON strict (True/False)
ORJSON_STRICT=True