-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.env.example
More file actions
33 lines (27 loc) · 2.05 KB
/
Copy path.env.example
File metadata and controls
33 lines (27 loc) · 2.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# ── Mon Potager — variables d'environnement ──────────────────────────────
# Copier en `.env` (dev) ou `.env.production` (serveur) et renseigner.
# ── Authentification (mot de passe foyer) ────────────────────────────────
# Si vide/non défini : l'auth est désactivée (accès libre sur le LAN).
HOUSEHOLD_PASSWORD=change-moi
# ── Base de données ──────────────────────────────────────────────────────
# Chemin du fichier SQLite (défaut : ./data/potager.db)
# DATABASE_PATH=/var/lib/potager/potager.db
# ── Notifications : déclencheur cron ─────────────────────────────────────
# Secret exigé pour appeler POST /api/notify/run
CRON_SECRET=un-secret-long-et-aleatoire
# Décalage de zone pour le digest (-1 = sud, 0 = tempéré, 1 = nord)
NOTIFY_ZONE_OFFSET=0
# ── Notifications : Discord ──────────────────────────────────────────────
# DISCORD_WEBHOOK_URL=https://discord.com/api/webhooks/xxxx/yyyy
# ── Notifications : Home Assistant ───────────────────────────────────────
# Option A — webhook HA (le plus simple) :
# HA_WEBHOOK_URL=https://ha.mondomaine.fr/api/webhook/potager
# Option B — API REST + service notify + long-lived token :
# HA_BASE_URL=https://ha.mondomaine.fr
# HA_TOKEN=eyJ...long-lived-token...
# HA_NOTIFY_SERVICE=mobile_app_mon_telephone
# ── Notifications : Web Push (PWA) ───────────────────────────────────────
# Générer les clés : npx web-push generate-vapid-keys
# NEXT_PUBLIC_VAPID_PUBLIC_KEY=BMxxxx...
# VAPID_PRIVATE_KEY=xxxx...
# VAPID_SUBJECT=mailto:vous@example.com