Skip to main content

Environment Variables Reference

Auto-generated

This page is auto-generated from backend/.env.example. Do not edit manually.

General​

VariableDefaultRequiredDescription
PORT4000YesTenable Dashboard Backend Environment Configuration Copy this file to .env and fill in your values Server Configuration
NODE_ENVdevelopmentYesβ€”
ALLOW_DEMO_LOGINtrue # Only set to true in development! Enables demo credentials.NoSecurity Configuration
ENCRYPTION_KEYyour_32_character_encryption_keyYesEncryption Key for API keys at rest (REQUIRED - exactly 32 characters) Generate with: openssl rand -hex 16
INITIAL_ADMIN_EMAILadmin@company.comNoInitial Admin User (only used if no admin exists in database) These credentials are used for first-time bootstrap; change password after first login!
INITIAL_ADMIN_PASSWORDchangeme123Noβ€”
INITIAL_ADMIN_NAMESystem AdministratorNoβ€”
TENABLE_ACCESS_KEYyour_tenable_access_key_hereYesTenable API Configuration Get your API keys from https://cloud.tenable.com/
TENABLE_SECRET_KEYyour_tenable_secret_key_hereYesβ€”
TENABLE_API_URLhttps://cloud.tenable.comNoβ€”
DATABASE_URLpostgresql://tenable:tenable_secure_password_change_me@localhost:5432/tenable_dashboardYesDatabase Configuration (PostgreSQL)
DB_HOSTlocalhostNoβ€”
DB_PORT5432Noβ€”
DB_NAMEtenable_dashboardNoβ€”
DB_USERtenableNoβ€”
DB_PASSWORDtenable_secure_password_change_meNoβ€”
REDIS_URLredis://localhost:6379NoRedis Configuration
REDIS_HOSTlocalhostNoβ€”
REDIS_PORT6379Noβ€”
JWT_SECRETyour_super_secret_jwt_key_change_in_production_min_32_charsYesJWT Configuration
JWT_EXPIRES_IN1dNoβ€”
JWT_REFRESH_SECRETyour_refresh_token_secret_change_in_productionNoβ€”
JWT_REFRESH_EXPIRES_IN7dNoβ€”
SESSION_TIMEOUT_MINUTES30NoSession Configuration
RATE_LIMIT_WINDOW_MS60000NoRate Limiting
RATE_LIMIT_MAX_REQUESTS100Noβ€”
CORS_ORIGINhttp://localhost:3000NoCORS Configuration
AZURE_CLIENT_IDβ€”NoSSO Configuration (Optional) Azure AD
AZURE_CLIENT_SECRETβ€”Noβ€”
AZURE_TENANT_IDβ€”Noβ€”
OKTA_DOMAINβ€”NoOkta
OKTA_CLIENT_IDβ€”Noβ€”
OKTA_CLIENT_SECRETβ€”Noβ€”
GOOGLE_CLIENT_IDβ€”NoGoogle OAuth
GOOGLE_CLIENT_SECRETβ€”Noβ€”
LOG_LEVELdebugNoLogging
CACHE_TTL3600NoCache TTL (in seconds)
API_CACHE_TTL21600Noβ€”

Generated on 2026-04-05