info-canicule/.env.tmpl
Florian 5f8b765d79
Some checks are pending
Deploy info-canicule / deploy (push) Waiting to run
feat: Vigilance API officielle + tab 1 an + logo SVG + map à 5xl
1. lib/vigilance.ts : provider Météo France officielle via DPVigilance/v1
   /cartevigilance/encours. Map vers VigilanceAlert (1 par dept × phen × J/J1)
   en prenant phenomenon_max_color_id (pire de la journée). Filtre les domains
   non-dept (FRA national, sub-côtes XX10, etc).
   - Auto-pick : MF si key dispo, sinon opendatasoft. Override VIGILANCE_PROVIDER.
   - Fallback opendatasoft si MF échoue (cache key différent pour pas polluer).
   - Devrait fixer le lag de plusieurs heures observé sur Opendatasoft.

2. lib/climato.ts : fetch latest + previous (~4 MB compressé), garder 365j max
   en cache 24h. Permet l'onglet "1 an" sur la page dept.

3. TemperatureChartInteractive : onglet "1 an" (apparaît si > 30j dispos),
   série days365 + normales365 sérialisés au SSR.

4. Base.astro : logo header et footer utilisent <img src="/favicon.svg">
   au lieu d'un emoji 🌡️.

5. index.astro : wrapper map repassé à container-tight (max-w-5xl) — la version
   1400px était trop grande, on revient à la largeur du reste du site.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-26 01:57:35 +02:00

22 lines
1 KiB
Cheetah

NODE_ENV=production
PORT=4321
PUBLIC_SITE_URL=https://info-canicule.nocleus.com
# Valkey shared infra — DB 0 (isolation par préfixe `info-canicule:*` via ACL)
REDIS_URL=redis://info-canicule:{{ pass://Infra/Valkey — info-canicule/password }}@valkey:6379/0
# Provider Vigilance : `meteofrance` (API officielle, frais) ou `opendatasoft` (no-auth, lag possible).
# Vide = auto (MF si METEOFRANCE_API_KEY défini, sinon opendatasoft).
VIGILANCE_PROVIDER=
VIGILANCE_CACHE_TTL=900
# Umami analytics (RGPD, auto-hébergé — analytics.nocleus.com)
UMAMI_WEBSITE_ID={{ pass://Infra/Umami — info-canicule/website_id }}
UMAMI_SRC=https://analytics.nocleus.com/script.js
# GlitchTip (optionnel — si vide, pas d'envoi Sentry)
SENTRY_DSN={{ pass://Infra/Info Canicule — secrets/SENTRY_DSN }}
# Météo France API (portail-api.meteofrance.fr) — API Key longue durée
# Header `Authorization: Bearer <key>`. Rotation : recréer sur portail, vault, make env, redeploy.
METEOFRANCE_API_KEY={{ pass://Infra/Météo France API/api_key }}