Dealer_Onboarding_Backend/.env.example

63 lines
2.0 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Environment configuration
NODE_ENV=development
PORT=5000
FRONTEND_URL=http://localhost:5173
# Rate Limiting
RATE_LIMIT_WINDOW_MS=900000
RATE_LIMIT_MAX_REQUESTS=1000
# Authentication
JWT_SECRET=your-secret-key-change-in-production
JWT_EXPIRE=7d
# Database Configuration
DB_USER=postgres
DB_PASSWORD=postgres
DB_NAME=royal_enfield_onboarding
DB_HOST=localhost
DB_PORT=5432
DB_SSL=false
# Email: ENABLE_SMTP=true → real SMTP (GSM / EMAIL_*); false → Ethereal test inbox
ENABLE_SMTP=false
EMAIL_HOST=smtp.gmail.com
EMAIL_PORT=587
EMAIL_SECURE=true
EMAIL_USER=your-email@gmail.com
EMAIL_PASSWORD=your-app-password
EMAIL_FROM="Royal Enfield <noreply@royalenfield.com>"
# Google Secret Manager (optional — fetches SMTP_* secrets into EMAIL_* env vars)
USE_GOOGLE_SECRET_MANAGER=false
# Optional — defaults to project_id inside the credentials JSON
# GCP_PROJECT_ID=your-gcp-project-id
GCP_KEY_FILE=./credentials/your-service-account.json
GCP_SECRET_PREFIX=
GCP_SECRET_MAP_FILE=./config/gcp-secret-map.smtp.example.json
# Web Push Notifications (VAPID)
VAPID_PUBLIC_KEY=your_vapid_public_key
VAPID_PRIVATE_KEY=your_vapid_private_key
VAPID_EMAIL=admin@royalenfield.com
# File Uploads
UPLOAD_DIR=./uploads
MAX_FILE_SIZE=10485760
# Redis / BullMQ (required for scheduled jobs: SLA, LWD, questionnaire reminders, notifications)
ENABLE_REDIS=false
REDIS_HOST=127.0.0.1
REDIS_PORT=6379
# DEBUG_SLA_FAST_MODE=true # Internal SLA checks every minute (dev only)
# DEBUG_SLA_REPEAT_IN_FAST_MODE=true # Also send repeat-overdue every minute in fast mode (usually OFF)
# SLA_BUSINESS_HOURS=false # Disable MonFri 918h TAT counting (default: on unless fast mode)
# DEBUG_OFFBOARDING_LWD_FAST_MODE=true # LWD reminder sweep every 15 min (dev only)
# Prospect questionnaire reminders (scheduled — NOT internal SLA)
QUESTIONNAIRE_REMINDER_SCHEDULER_ENABLED=true
QUESTIONNAIRE_REMINDER_FIRST_AFTER_DAYS=1
QUESTIONNAIRE_REMINDER_INTERVAL_DAYS=2
QUESTIONNAIRE_REMINDER_MAX_COUNT=5
# DEBUG_QUESTIONNAIRE_REMINDER_FAST_MODE=true # Sweep every 15 min (dev only)