# =============================================================
# cPanel deployment environment (copy to .env, then fill in)
# =============================================================

# --- HTTP / session ---
PORT=4310

# Public URL of the app (used to build invitation links). Example:
BASE_URL=https://chubblife-globaltownhall.com

# MUST be a long random string (>= 32 chars). Generate with:
#   node -e "console.log(require('crypto').randomBytes(32).toString('hex'))"
SESSION_SECRET=c76f1dde4088e03514c8e55b11328535c9df734d14d1ac21f47b4aed886368cd

# Set to true ONLY when serving over HTTPS (adds Secure to cookies)
COOKIE_SECURE=true

# --- Admin account (created on first boot if missing) ---
ADMIN_EMAIL=admin@event.local
ADMIN_PASSWORD=ChangeMe123!

# --- MySQL (cPanel -> "MySQL Databases") ---
# Host is usually "localhost" on cPanel. Some hosts use
# "localhost.<server>" or provide a separate DB host.
MYSQL_HOST=localhost
MYSQL_PORT=3306
MYSQL_USER=chubblif_produser
MYSQL_PASSWORD=KXx18W(Ef$8D
MYSQL_DATABASE=chubblif_event
MYSQL_CONN_LIMIT=10

# --- Feature toggles (shared hosting has no Python runtime) ---
# Bulk email send + single-send use a local Python 3 + smtplib, which is
# disabled on shared hosting. Keep these "false" unless your host supports
# executing Python (most cPanel shared hosts do not).
SMTP_ENABLED=false
XLSX_ENABLED=false

# --- SMTP (only used if SMTP_ENABLED=true) ---
SMTP_HOST=
SMTP_PORT=587
SMTP_SECURE=false
SMTP_STARTTLS=true
SMTP_USER=
SMTP_PASS=
SMTP_FROM=
