Skip to Content
πŸŽ‰ EZMON v0.1.3 is released. Visit ezmon.web.id β†’
InstallationEnvironment Variables

Environment Variables

Hub (apps/web/.env.local)

VariableRequiredDescription
DATABASE_URLβœ…Neon Serverless Postgres connection string
NEXTAUTH_SECRETβœ…JWT signing secret (minimum 32 characters)
NEXTAUTH_URLβœ…Full URL of the deployed hub
apps/web/.env.local
DATABASE_URL=postgresql://user:pass@host.neon.tech/neondb?sslmode=require NEXTAUTH_SECRET=generate-with-openssl-rand-base64-32 NEXTAUTH_URL=https://your-app.vercel.app

Worker (apps/worker β€” set via Wrangler secrets)

VariableRequiredDescription
DATABASE_URLβœ…Same Neon connection string
WORKER_SECRETβœ…Auth token for the manual /trigger endpoint
npx wrangler secret put DATABASE_URL npx wrangler secret put WORKER_SECRET

Agent (environment variables on server)

VariableRequiredDefaultDescription
EZMON_SERVER_URLβœ…β€”Hub URL without trailing slash
EZMON_AGENT_TOKENβœ…β€”Token from EZMON dashboard
EZMON_AGENT_NAME❌hostnameDisplay name in dashboard
EZMON_HEARTBEAT_INTERVAL❌30Heartbeat interval in seconds
/etc/systemd/system/ezmon-agent.service (Environment= lines)
EZMON_SERVER_URL=https://your-app.vercel.app EZMON_AGENT_TOKEN=your-agent-token EZMON_AGENT_NAME=my-server
Last updated on