Skip to main content

Storage database environment variables

Storage database environment variables available for use with Self-hosted Retool deployments.

DATABASE_MIGRATIONS_TIMEOUT_SECONDS

The duration, in seconds, for migrations to run before timing out. If unset, the default is 300.

Consider setting a higher value if you're upgrading to another major version of Self-hosted Retool or the upgrade includes changes from multiple minor versions.

DATABASE_MIGRATIONS_TIMEOUT_SECONDS=900

POSTGRES_CUSTOM_SSL_CA_FILE_NAME

The name of the custom SSL CA file to use. This is required when configuring Google Cloud SQL as the database to use instead of Retool's PostgreSQL database.

POSTGRES_CUSTOM_SSL_CA_FILE_NAME=filename

POSTGRES_CUSTOM_SSL_CERT_FILE_NAME

The name of the custom SSL certificate file to use. This is required when configuring Google Cloud SQL as the database to use instead of Retool's PostgreSQL database.

POSTGRES_CUSTOM_SSL_CERT_FILE_NAME=filename

POSTGRES_CUSTOM_SSL_KEY_FILE_NAME

The name of the custom SSL key file to use. This is required when configuring Google Cloud SQL as the database to use instead of Retool's PostgreSQL database.

POSTGRES_CUSTOM_SSL_KEY_FILE_NAME=filename

POSTGRES_CUSTOM_SSL_CERT_PATH

The path to your custom certificate when connecting to your Retool database.

POSTGRES_CUSTOM_SSL_CERT_PATH=/var/data/certs

POSTGRES_SSL_ENABLED

Force SSL connections to your Retool PostgreSQL storage database.

POSTGRES_SSL_ENABLED=true

POSTGRES_SSL_REJECT_UNAUTHORIZED

Reject unauthorized SSL connections if POSTGRES_SSL_ENABLED is true.

You must enable this if using self-signed certificates on 2.95+.

POSTGRES_SSL_REJECT_UNAUTHORIZED=true