Environment Variables
Manage secrets and configuration securely
Overview
Environment variables allow you to configure your application without hardcoding sensitive data. Used by PostgreSQL and Redis for connection strings.
Setting Variables
In the web dashboard:
- Navigate to your service
- Click "Environment Variables" tab
- Click "Add Variable"
- Enter key and value (e.g.,
API_KEY=your-secret-key) - Click "Save"
- Redeploy for changes to take effect
Viewing Variables
In the dashboard:
- Go to "Environment Variables" tab
- All variables are listed (values are hidden by default)
- Click the eye icon to reveal values
- Use the search box to filter variables
Best Practices
- Never commit secrets to Git
- Use different values per environment
- Rotate secrets regularly
- Use strong encryption
Built-in Variables
Chita Cloud provides these automatically:
PORT- Application portNODE_ENV- Environment nameCHITA_REGION- Deployment regionCHITA_APP_ID- Application ID
See deployment overview for usage in different runtimes.