info-canicule/.env.example
Florian a849977fcc
Some checks are pending
Deploy info-canicule / deploy (push) Waiting to run
refactor(mf): API Key longue durée au lieu d OAuth2 client_credentials
Le portail Météo France ne propose pas le flow client_credentials gratuit
(seulement token OAuth2 court 1h, pas viable, ou API Key longue durée).
On simplifie : un seul env METEOFRANCE_API_KEY → Authorization: Bearer.

- lib/meteofrance-auth.ts : suppression du cache token + flow refresh
- .env.tmpl : ref unique vers vault Infra/Météo France API/api_key
- vault item recréé avec api_key (hidden) + created_at + expires_at
- CLAUDE.md projet : section rotation API key

L onglet 24 h n apparaît qu une fois api_key non vide dans le vault.

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

22 lines
702 B
Text

# Application
NODE_ENV=development
PORT=4321
PUBLIC_SITE_URL=http://localhost:4321
# Valkey (Redis) — dev local utilise un container, prod utilise l'infra partagée
REDIS_URL=redis://localhost:6379/0
# Vigilance provider
# `opendatasoft` (default, no auth) ou `meteofrance` (token requis)
VIGILANCE_PROVIDER=opendatasoft
# TTL du cache Vigilance en secondes (Vigilance se met à jour 2x/jour, 15min raisonnable)
VIGILANCE_CACHE_TTL=900
# Umami analytics (optionnel — laisser vide pour désactiver)
UMAMI_WEBSITE_ID=
UMAMI_SRC=https://analytics.nocleus.com/script.js
# Météo France API (portail-api.meteofrance.fr)
# API Key longue durée — Authorization: Bearer <key>
METEOFRANCE_API_KEY=