f1b0eab11d
- Add OFF_USERNAME and OFF_PASSWORD env vars - Use Basic Auth when credentials are provided - Improves rate limits for authenticated requests - Auth is optional (works without credentials)
27 lines
795 B
Bash
27 lines
795 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 (optional, improves rate limits)
|
|
# Register at: https://world.openfoodfacts.org/
|
|
OFF_USERNAME=
|
|
OFF_PASSWORD=
|