# ============================================
# REQUIRED ENVIRONMENT VARIABLES
# ============================================
# Copy this file to .env and fill in your values

# Database Connection (PostgreSQL)
DATABASE_URL=postgres://postgres:password123@localhost:5433/farmmarket

# JWT Secrets (use strong random strings)
# Generate with: node -e "console.log(require('crypto').randomBytes(32).toString('hex'))"
JWT_ACCESS_SECRET=add74b258202057143382e8ee9ecc24a1114eddd3da5db79f3d29d24d7083043
JWT_REFRESH_SECRET=94a09772321fa15dc41c6c1e07d3b97a5b50d770e29f2ade47e8de5c571a611d

# ============================================
# OPTIONAL ENVIRONMENT VARIABLES
# ============================================

# Server Configuration
PORT=3000
NODE_ENV=development

# CORS Configuration (comma-separated list, required in production)
# Example: https://yourdomain.com,https://www.yourdomain.com
#CORS_ALLOWED_ORIGINS=

# JWT Token Expiration (default values shown)
JWT_ACCESS_TTL=15m
JWT_REFRESH_TTL=7d

# Refresh Token Inactivity Timeout (in minutes, default: 4320 = 3 days)
REFRESH_MAX_IDLE_MINUTES=4320

# OTP Configuration
OTP_MAX_ATTEMPTS=5

# ============================================
# TWILIO SMS CONFIGURATION (Optional)
# ============================================
# Required for sending OTP via SMS
# If not configured, OTP will be logged to console in development

TWILIO_ACCOUNT_SID=ACa6723cb1475351e13d9ca60059c23b28
TWILIO_AUTH_TOKEN=67ecdfb2bc70285b45b969940e18e443

# Use either TWILIO_MESSAGING_SERVICE_SID (recommended) OR TWILIO_FROM_NUMBER
#TWILIO_MESSAGING_SERVICE_SID=your-messaging-service-sid
# OR
TWILIO_FROM_NUMBER=+16597322424

# ============================================
# Twilio SMS Configuration (Optional)
# ============================================
# TWILIO_ACCOUNT_SID=your-twilio-account-sid
# TWILIO_AUTH_TOKEN=your-twilio-auth-token
# TWILIO_MESSAGING_SERVICE_SID=your-messaging-service-sid  (recommended)
# OR
# TWILIO_FROM_NUMBER=+1234567890

# ============================================
# ADMIN DASHBOARD CONFIGURATION
# ============================================
ENABLE_ADMIN_DASHBOARD=true
