Skip to main content

Configuration

Below is a list of configuration options that can be found in your .env file:

tip

You'll need to restart the backend container after modifying your .env file

Environment variableRequiredDescription
JWT_SECRETYesYour unique secret that signs all authenticated requests. Treat this as securely as you would a database password
API_SECRETYes32-character secret for encrypting API keys
DASHBOARD_URLYesThe URL of your frontend. Used for setting CORS headers and in emails
DB_HOSTYesThe host name for your database. If using containers, this is typically the name of your database service
DB_PORTYesThe port your database runs on, usually 3306
DB_NAMEYesThe name of your database table
DB_USERYesThe user which has access to your table
DB_PASSYesThe password for the database user
REDIS_PASSWORDYesThe password for your Redis instance
AUTO_CONFIRM_EMAILNoA boolean that defines whether users have their emails automatically confirmed after signing up
FROM_EMAILNoThe email address used to send emails from the backend
RECOVERY_CODES_SECRETNo32-character secret for encrypting your 2FA recovery codes, required to use 2FA
STEAM_INTEGRATION_SECRETNo32-character secret for encrypting your Steam API key, required to use the Steamworks integration

Third party configurations

Talo uses a handful of third party services to handle common tasks.

Sentry

Sentry is an error-reporting tool that alerts you when exceptions get thrown. You can enable Sentry by setting the SENTRY_DSN environment variable to your unique DSN.

Sendgrid

Talo uses Sendgrid to send emails. It handles common problems with running your mail server like handling reputation, bounces and more. You can enable emails by setting the SENDGRID_KEY environment variable to a valid API key.

tip

Make sure your API key has full access to Mail Send and Sender Authentication. Your domain must also be authenticated within Sendgrid.