Skip to main content

Environment Variables Reference

All environment variables used across Kuploy components, grouped by concern.

Licensing

VariableDescriptionDefaultRequired
LICENSE_KEYLicense key from kuploy.app(none)Yes (Cloud)
LICENSE_HUB_URLLicense hub URLhttps://kuploy.appNo
LICENSE_SYNC_INTERVAL_SECONDSHow often to sync usage with license hub300 (5 min)No
LICENSE_SYNC_RETRY_SECONDSRetry interval on sync failure60 (1 min)No

LICENSE_KEY and LICENSE_HUB_URL can also be configured via the admin UI (Admin → Domains → License Hub Integration). UI-saved config takes precedence over environment variables and does not require a restart.

Stripe Billing

VariableDescriptionDefaultRequired
STRIPE_SECRET_KEYStripe API secret key(none)Yes (Cloud)
STRIPE_PUBLISHABLE_KEYStripe publishable key(none)Yes (Cloud)
STRIPE_WEBHOOK_SECRETWebhook signing secret(none)Yes (Cloud)

Authentication

VariableDescriptionDefaultRequired
BETTER_AUTH_SECRETAuthentication secret (32+ chars)(none)Yes (Cloud)
PLATFORM_ADMIN_EMAILEmail of the first platform admin(none)Recommended

SMTP

VariableDescriptionDefaultRequired
SMTP_HOSTSMTP server hostname(none)Recommended
SMTP_PORTSMTP port587No
SMTP_USERSMTP authentication username(none)If SMTP_HOST set
SMTP_PASSSMTP authentication password(none)If SMTP_HOST set
SMTP_FROMSender email address(none)If SMTP_HOST set
SMTP_FROM_NAMESender display nameKuployNo

Database

VariableDescriptionDefaultRequired
DATABASE_URLPostgreSQL connection string(none)Yes
REDIS_URLRedis connection string(none)Yes

Application

VariableDescriptionDefaultRequired
NEXT_PUBLIC_APP_URLPublic URL of the kuploy-cloud instance(none)Recommended
PORTPort the application listens on3000No
NODE_ENVNode.js environmentproductionNo

Cron

VariableDescriptionDefaultRequired
CRON_SECRETSecret for authenticating cron job requests(none)If using cron

Configuration Priority

When the same setting is available via both environment variable and the admin dashboard:

  1. Admin dashboard (stored encrypted in database) — highest priority
  2. Environment variable — fallback

This means you can override environment variables through the admin dashboard without restarting the application. See Admin Dashboard for details.