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
DB_USERYesThe user which has access to your database
DB_PASSYesThe password for the database user
CLICKHOUSE_HOSTYesThe host name for your Clickhouse instance. If using containers, this is typically the name of your Clickhouse service
CLICKHOUSE_PORTNoThe port your Clickhouse instance runs on, usually 8123
CLICKHOUSE_DBYesThe name of your Clickhouse database
CLICKHOUSE_USERYesThe user which has access to your Clickhouse database
CLICKHOUSE_PASSWORDYesThe password for the Clickhouse 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.