Environment Variables Reference
Hub (apps/web/.env.local / Vercel Environment Variables)
| Variable | Required | Example / Default | Description |
|---|---|---|---|
DATABASE_URL | β | postgresql://user:pass@host/db?sslmode=require | PostgreSQL Connection String (Neon, Supabase, RDS, etc) |
NEXTAUTH_SECRET | β | openssl rand -base64 32 | JWT session encryption key (min 32 characters) |
NEXTAUTH_URL | β | https://your-hub.vercel.app | Canonical public URL of the Hub |
CRON_SECRET | β | openssl rand -base64 32 | Bearer Auth token protecting /api/internal/evaluate |
NEXT_PUBLIC_APP_URL | β | https://your-hub.vercel.app | Public domain URL for status pages & CORS origins |
SMTP_HOST | β | smtp.resend.com | SMTP host for sending registration OTP emails |
SMTP_PORT | β | 587 | SMTP server port |
SMTP_USER | β | resend | SMTP authentication username |
SMTP_PASS | β | re_... | SMTP password or API key |
SMTP_FROM | β | EZMON <noreply@domain.com> | Sender email address for registration OTPs |
Deprecated Note:
WORKER_SECREThas been deprecated and replaced byCRON_SECRETstarting in EZMON v0.1.14+.
Agent (Environment Variables on Host Linux)
| Variable | Required | Default | Description |
|---|---|---|---|
EZMON_SERVER_URL | β | β | EZMON Hub URL (e.g. https://your-hub.vercel.app) |
EZMON_AGENT_TOKEN | β | β | Registration token or permanent agent token |
EZMON_AGENT_NAME | β | System hostname | Custom node display name shown in dashboard |
EZMON_HEARTBEAT_INTERVAL | β | 30 | Heartbeat push frequency (in seconds) |
Last updated on