Configuration

PPI.bio deployments are configured using .env files.

Here are the environment variables you can configure:

Variables

Variable

Description

SECRET_KEY

A secret key used for cryptographic purposes. Make this secure.

DATABASE_URL

A database URL that conforms to this schema. This is the same 12Factor-style schema that Dokku and Heroku use.

DEBUG

Whether the website should be in Debug mode. In Debug mode, error stacktraces are reproduced. For security reasons, DEBUG should be False in Production.

LOCALE_LANGUAGE_CODE

The language code for the interface. Currently only supports and defaults to en-us.

LOCALE_TIME_ZONE

The timezone the server is running on. Defaults to UTC.

Q_WORKERS

Number of workers per instance of the job queue task runner, Django Q.

Q_TIMEOUT

Max time for a job to take before being retried (in seconds). Defaults to 60000.

DJANGO_STATIC_HOST

From what domain should static files be served. Only relevant when DEBUG=False. Good for serving from CDNs.

REDIS_URL

A database URL that conforms to this schema pointing to a Redis server. This is the same 12Factor-style schema that Dokku and Heroku use.

ALLOWED_HOSTS

What domain should the site be served from. “localhost” is a good value for local development.

MAILGUN_PRIVATE_KEY

The Mailgun private key, used for sending newsletter emails.

MAILGUN_WEBHOOK_SIGNING_KEY

The Mailgun webhook key, used for sending newsletter emails.

DEFAULT_FROM_EMAIL

Where emails are sent from

MAILGUN_SENDER_DOMAIN

The domain from which Mailgun will send emails.