Skip to Content
Terragate Documentation is under active development. Check back often for updates!
DeploymentEnvironment Variables

Environment Variables

Configuration options for Terragate deployments.

Environment variables are only applicable for self-hosted Enterprise deployments. Terragate Cloud handles all configuration automatically.

Core Configuration

VariableDescriptionDefault
NODE_ENVEnvironment modeproduction
PORTAPI server port3300
LOG_LEVELLogging verbosityinfo

Database

VariableDescriptionRequired
DB_HOSTPostgreSQL hostYes
DB_PORTPostgreSQL portYes
DB_USERNAMEDatabase userYes
DB_PASSWORDDatabase passwordYes
DB_DATABASEDatabase nameYes

Authentication

VariableDescriptionRequired
JWT_SECRETJWT signing secretYes
JWT_EXPIRES_INToken expiration15m

Redis

VariableDescriptionRequired
REDIS_HOSTRedis server hostYes
REDIS_PORTRedis server port6379

Need Help?

For enterprise deployment configuration, contact our sales team.

Last updated on