# Exemple de configuration GMAO - copier en .env et personnaliser

# Secrets (a changer imperativement)
OUTLOOK_ENCRYPTION_KEY=remplacer_par_une_cle_fermet_32_bytes_base64
SECRET_KEY=remplacer_par_une_cle_secrete_longue_et_aleatoire
SETUP_TOKEN=remplacer_par_un_jeton_aleatoire_de_32_caracteres_minimum

# Base de donnees locale (hors Docker)
# DATABASE_URL=mysql+pymysql://gmao:votre_mot_de_passe@localhost/gmao_db?charset=utf8mb4
# Base de donnees Docker (service mariadb)
DATABASE_URL=mysql+pymysql://gmao:${MARIADB_PASSWORD}@mariadb/gmao_db?charset=utf8mb4

# Dossier des uploads (chemin absolu)
UPLOAD_FOLDER=/app/app_new/uploads

# Watchdog Yeastar DND (optionnel, desactive par defaut)
YEASTAR_DND_ENABLED=0
YEASTAR_BASE_URL=https://votre-yeastar.example
YEASTAR_USERNAME=CHANGE_ME
YEASTAR_PASSWORD=CHANGE_ME
YEASTAR_DND_REFRESH_SECONDS=2
YEASTAR_DND_RESET_DELAY_SECONDS=3
YEASTAR_DND_EXCLUDED_EXTENSIONS=

# Variables optionnelles pour Docker Compose
MARIADB_ROOT_PASSWORD=CHANGE_ME
MARIADB_DATABASE=gmao_db
MARIADB_USER=gmao
MARIADB_PASSWORD=CHANGE_ME
