Skip to content

Commit

Permalink
Document environment variables for configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
nawatts committed Aug 23, 2019
1 parent 2c53048 commit 4aa9ef0
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions docs/configuration.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# Configuration

The variant curation portal can be configured using the following environment variables:

## Web server settings

- `ALLOWED_HOSTS`

Controls Django's [ALLOWED_HOSTS](https://docs.djangoproject.com/en/2.2/ref/settings/#allowed-hosts) setting.
Multiple hosts should be separated with commas. Defaults to `localhost`.

- `SECRET_KEY`

Controls Django's [SECRET_KEY](https://docs.djangoproject.com/en/2.2/ref/settings/#std:setting-SECRET_KEY) setting.
Defaults to a random key generated when the app server starts.

## Database settings

- `DB_ENGINE`

Controls Django's database [ENGINE](https://docs.djangoproject.com/en/2.2/ref/settings/#engine) setting.
Defaults to `django.db.backends.sqlite3`.

- `DB_HOST`

Controls Django's database [HOST](https://docs.djangoproject.com/en/2.2/ref/settings/#host) setting.
Defaults to `localhost`.

- `DB_PORT`

Controls Django's database [PORT](https://docs.djangoproject.com/en/2.2/ref/settings/#port) setting.
Defaults to `5432`.

- `DB_DATABASE`

Controls Django's database [NAME](https://docs.djangoproject.com/en/2.2/ref/settings/#name) setting.
Defaults to a `db.sqlite3` file located in the variant-curation-portal directory.

- `DB_USER`

Controls Django's database [USER](https://docs.djangoproject.com/en/2.2/ref/settings/#user) setting.
Defaults to an empty string.

- `DB_PASSWORD`

Controls Django's database [PASSWORD](https://docs.djangoproject.com/en/2.2/ref/settings/#password) setting.
Defaults to an empty string.

## Authentication settings

- `CURATION_PORTAL_AUTH_HEADER`

The curation portal uses Django's [RemoteUserMiddleware](https://docs.djangoproject.com/en/2.2/howto/auth-remote-user/)
for authentication. This setting controls the header from which the authenticated user's username is read.
Defaults to `REMOTE_USER`.

0 comments on commit 4aa9ef0

Please sign in to comment.