# ============================================================
# DATABASE CONFIGURATION
# ============================================================

# PostgreSQL Database - Update these with your cPanel credentials
# Format: postgresql://USERNAME:PASSWORD@HOST/DATABASE_NAME
DATABASE_URL=postgresql://atmseryv_magnum_user:YourStrongPasswordHere@localhost/atmseryv_magnum_erp

# ============================================================
# SECURITY KEYS - USE STRONG RANDOM STRINGS
# ============================================================

# Generate using: python -c "import secrets; print(secrets.token_urlsafe(32))"
SECRET_KEY=magnum_erp_2026_super_secret_key_change_this_before_deployment

# JWT Secret - Different from SECRET_KEY
JWT_SECRET=magnum_erp_2026_jwt_secret_change_this_before_deployment

# ============================================================
# PRODUCTION SETTINGS
# ============================================================

PRODUCTION=True
DEBUG=False

# ============================================================
# ALLOWED HOSTS - Add your domain(s)
# ============================================================

ALLOWED_HOSTS=localhost,127.0.0.1,erp.delzt.co.ke,delzt.co.ke

# ============================================================
# CORS ORIGINS - Add your domain(s)
# ============================================================

CORS_ORIGINS=https://erp.delzt.co.ke,https://delzt.co.ke,http://erp.delzt.co.ke

# ============================================================
# SESSION CONFIGURATION
# ============================================================

SESSION_TIMEOUT_HOURS=8
REFRESH_TOKEN_DAYS=7

# ============================================================
# EMAIL CONFIGURATION (Optional - For future features)
# ============================================================

# SMTP_HOST=smtp.yourhost.com
# SMTP_PORT=587
# SMTP_USER=your_email@delzt.co.ke
# SMTP_PASSWORD=your_email_password
# SMTP_USE_TLS=True
# DEFAULT_FROM_EMAIL=noreply@delzt.co.ke

# ============================================================
# ADMIN CONFIGURATION
# ============================================================

ADMIN_EMAIL=admin@delzt.co.ke
ADMIN_USERNAME=admin

# ============================================================
# LOGGING
# ============================================================

LOG_LEVEL=INFO
LOG_FILE=logs/erp.log