# ================================================
# Cosign CMS - Environment Configuration
# ================================================
# Copy this file to .env and update values

# ------------------------------------------------
# Application
# ------------------------------------------------
NODE_ENV=development
PORT=5005

# ------------------------------------------------
# MongoDB Connection
# ------------------------------------------------
# MONGODB_URI=mongodb://localhost:27017/epaper-cms
MONGODB_URI=mongodb+srv://tejaspadaleadcs_db_user:26HsUZMoYfGoQL7Z@epapercms.10xwo6p.mongodb.net/?appName=EpaperCMS

# ------------------------------------------------
# JWT Configuration
# ------------------------------------------------
# IMPORTANT: Change these in production!
JWT_SECRET=your-super-secret-jwt-key-change-in-production-min-32-chars
JWT_EXPIRES_IN=1d
JWT_REFRESH_SECRET=your-refresh-secret-key-change-in-production-min-32-chars
JWT_REFRESH_EXPIRES_IN=7d
JWT_COOKIE_EXPIRES_IN=7

# ------------------------------------------------
# Default Admin User (for seeding)
# ------------------------------------------------
ADMIN_EMAIL=admin@cosign.com
ADMIN_PASSWORD=Admin@123456

# ------------------------------------------------
# CORS Configuration
# ------------------------------------------------
# CORS_ORIGIN=http://localhost:5173
CORS_ORIGIN=https://beta.cosignconfigurator.com

# ------------------------------------------------
# File Upload Configuration
# ------------------------------------------------
UPLOAD_DIR=./uploads
MAX_FILE_SIZE=52428800

# ------------------------------------------------
# Email Configuration (for password reset)
# ------------------------------------------------
EMAIL_HOST=smtp.example.com
EMAIL_PORT=587
EMAIL_USER=your-email@example.com
EMAIL_PASSWORD=your-email-password
EMAIL_FROM=noreply@cosign.com

# ------------------------------------------------
# Frontend URL (for password reset links)
# ------------------------------------------------
# FRONTEND_URL=http://localhost:5173
FRONTEND_URL=https://beta.cosignconfigurator.com

# BACKEND_URL=http://localhost:5005
BACKEND_URL=https://beta.cosignconfigurator.com

# Laptop IP (the machine running the CMS)
LAPTOP_IP=192.168.188.147

# ------------------------------------------------
# Google reCAPTCHA v3
# ------------------------------------------------
RECAPTCHA_SECRET_KEY=6LdH-T4tAAAAAG8Tpb7sGLg1FgahpitHM3RaHo8f
RECAPTCHA_MIN_SCORE=0.5
