feat: daily digest, photo timeline, milk expiry cron, batch delete, duration chart
- /api/cron/daily-digest: last feed/diaper, 24h sleep total, next med due - /photos: photo grid grouped by day, full-screen lightbox with prev/next - /api/cron/milk-expiry: push alert for lots expiring within 24h - Timeline: select mode with checkboxes, confirm + bulk DELETE - Stats: avg NAP/NIGHT_SLEEP duration trend dual-line chart (30d) - Nav: Photos link added under "Vie du bébé" drawer group Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
# ─── Database ───────────────────────────────────────────────────────────────
|
||||
# PostgreSQL connection string.
|
||||
# Local: docker run -d -p 5432:5432 -e POSTGRES_PASSWORD=postgres postgres
|
||||
# Cloud: Railway, Supabase, Neon, etc.
|
||||
DATABASE_URL="postgresql://grow:0bweqoQtUVBHk%2Fntb3u93ynHAOkeJ1jEiPUjq68Fov4%3D@db:5432/grow"
|
||||
POSTGRES_PASSWORD="0bweqoQtUVBHk/ntb3u93ynHAOkeJ1jEiPUjq68Fov4="
|
||||
|
||||
# ─── Auth ───────────────────────────────────────────────────────────────────
|
||||
# Generate with: openssl rand -base64 32
|
||||
AUTH_SECRET="0Ku8DuYGiyzQRgin/o/8QTFV8P+eMLbxe3Dqzni6nPo="
|
||||
NEXTAUTH_URL="https://grow.arnaudne.fr"
|
||||
|
||||
# ─── Superadmin ─────────────────────────────────────────────────────────────
|
||||
# Email address of the superadmin user.
|
||||
# That user gets access to /admin (service config panel).
|
||||
# If unset, no one can access /admin.
|
||||
SUPERADMIN_EMAIL="arnaud.nelissen@icloud.com"
|
||||
|
||||
# ─── Email — Mailgun ────────────────────────────────────────────────────────
|
||||
# Used for forgot-password emails.
|
||||
# Set email_provider=mailgun in /admin, or set these env vars as fallback.
|
||||
# MAILGUN_API_KEY="key-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
|
||||
# MAILGUN_DOMAIN="mg.yourdomain.com"
|
||||
# MAILGUN_FROM="Grow <noreply@mg.yourdomain.com>"
|
||||
|
||||
# ─── Email — SMTP ───────────────────────────────────────────────────────────
|
||||
# Alternative to Mailgun. Set email_provider=smtp in /admin.
|
||||
# Works with any SMTP relay (Gmail App Password, Brevo, Postmark SMTP, etc.)
|
||||
SMTP_HOST="smtp.eu.mailgun.org"
|
||||
SMTP_PORT="587"
|
||||
SMTP_USER="grow@arnaudne.fr"
|
||||
SMTP_PASS="b7a0fb95175b812d54d6eafb4033e609-d2d7ea9a-051a3ccb"
|
||||
SMTP_FROM="Grow <grow@arnaudne.fr>"
|
||||
|
||||
# ─── Push notifications — Pushover ──────────────────────────────────────────
|
||||
# App token from https://pushover.net/apps/build
|
||||
# Each parent enters their own User Key in Settings → Notifications.
|
||||
PUSHOVER_APP_TOKEN="at7n5cs8x84an6u7jorwpmqok2dhed"
|
||||
Reference in New Issue
Block a user