87df61ab15
Run Tests on Branches / Detect Changes (push) Successful in 14s
Run Tests on Branches / Backend Tests (push) Successful in 2m24s
Run Tests on Branches / Frontend Tests (push) Successful in 1m57s
Run Tests on Branches / Frontend Mobile Tests (push) Has been skipped
Run Tests on Branches / Parapharmacy API Tests (push) Has been skipped
Run Tests on Branches / PIP Platform Tests (push) Has been skipped
- Add Mailpit SMTP container to docker-compose for dev email capture - Add nodemailer dependency for email sending - Add password_reset_tokens table (PG + SQLite) - Add POST /api/auth/forgot-username endpoint - Add POST /api/auth/forgot-password endpoint (token-based, 1h expiry) - Add POST /api/auth/reset-password endpoint - Create ForgotPasswordModal component (choose mode → email → sent) - Create ResetPasswordView (token-based new password form) - Add forgot/recovery links to LoginModal - Add i18n translations (ES/CA) for the full flow
40 lines
1.2 KiB
Bash
40 lines
1.2 KiB
Bash
PORT=3001
|
|
SESSION_SECRET=change-me-in-production
|
|
CORS_ORIGIN=http://localhost:3000
|
|
FARMACIAS_WEBHOOK_URL=
|
|
REDIS_HOST=localhost
|
|
REDIS_PORT=6379
|
|
REDIS_PASSWORD=
|
|
|
|
# PostgreSQL for user accounts (leave unset to fallback to SQLite — dev/test only)
|
|
PG_URL=postgresql://farmaclic:change-me@localhost:5432/farmaclic
|
|
PG_PASSWORD=change-me
|
|
|
|
# Web Push (VAPID). Generate with:
|
|
# node -e "import('web-push').then(w => console.log(w.default.generateVAPIDKeys()))"
|
|
VAPID_PUBLIC_KEY=
|
|
VAPID_PRIVATE_KEY=
|
|
VAPID_SUBJECT=mailto:admin@example.com
|
|
|
|
# Expo Push Notifications (mobile). Get token from:
|
|
# https://expo.dev/accounts/[username]/settings/access-tokens
|
|
EXPO_ACCESS_TOKEN=
|
|
|
|
# Clave para que los workflows de N8N (capa ETL) hagan ingest al catálogo unificado.
|
|
# Genera una cadena aleatoria fuerte, p.ej.: node -e "console.log(require('crypto').randomBytes(32).toString('hex'))"
|
|
INGEST_API_KEY=dev-ingest-key-change-me
|
|
|
|
# SMTP for password reset / forgot username emails
|
|
# Development: use Mailpit (docker) — no auth needed
|
|
SMTP_HOST=localhost
|
|
SMTP_PORT=1025
|
|
SMTP_USER=
|
|
SMTP_PASS=
|
|
SMTP_FROM=noreply@farmafinder.com
|
|
|
|
# Base URL for reset links in emails (your frontend URL)
|
|
APP_URL=http://localhost:3000
|
|
|
|
# Parapharmacy API
|
|
PARAPHARMACY_API_URL=http://localhost:3002
|