20debdb023
- Switch from /cgi/search.pl (503 errors) to /api/v2/search with brand filter - Add required User-Agent header per OFF documentation - Add OFF_USER_AGENT env var for customization - Update .env.example with User-Agent documentation - Retry logic continues to work with new endpoint
29 lines
905 B
Bash
29 lines
905 B
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=
|
|
|
|
# Open Food Facts
|
|
# Register at: https://world.openfoodfacts.org/
|
|
# User-Agent is REQUIRED per OFF docs (format: AppName/Version (ContactEmail))
|
|
OFF_USER_AGENT=FarmaFinder/1.0 (https://github.com/farmafinder)
|
|
OFF_USERNAME=
|
|
OFF_PASSWORD=
|