Configuration & Deployment#
VA Explorer configuration is primarily set by docker-compose.yml
with sensible
defaults. Admins or IT Staff with access to the server hosting a VA Explorer
instance can change this configuration via the .env
file. To begin using this
file (if you haven’t already during Installation & Setup’s Step 4) you can use
mv .env.template .env
and vim .env
to open a .env
file for editing. To
give an idea for how the VA Explorer could be changed each of the options is
documented below.
Variable Name |
Default Value |
Description |
---|---|---|
|
Not Set |
|
|
|
A Django Environ
|
|
|
The email address used in the sender field when VA Explorer sends
automated emails. Format options include |
|
|
Hash used by Django to cryptographically sign things like sessions and account recovery email urls. Defaults to the given hard-coded random hash. Recommended to customize. |
|
|
A list of comma separated |
|
|
A Celery supported backend URL schema. Allows VA Explorer to support reading results from long-running tasks such as batch cause-of-death assignment. Points to built-in redis service by default. |
|
|
|
|
Not Set |
Value indicating the username needed by the basic auth prompt that shows when attempting to access the celery flower interface. Not set by default. |
|
Not Set |
Value indicating the password needed by the basic auth prompt that shows when attempting to access the celery flower interface. Not set by default. |
|
|
Value indicating the postgres host location. Formatted as a PostgreSQL host parameter. Default value points to built-in postgres docker container. |
---|---|---|
|
|
Value indicating the port postgres runs on at the host location. Formatted as a PostgreSQL port parameter. Default points to postgres port of built-in service. |
|
|
Value indicating the name of the database used by VA Explorer. Formatted as a PostgreSQL dbname parameter. Default is name of app. |
|
|
Value indicating the name of the user accessing postgres. Formatted as a PostgreSQL user parameter. Defaults to standard user. |
|
|
Value indicating the password to use for the user accessing postgres. Formatted as a PostgreSQL password parameter. Defaults to standard pass of built-in service. Recommended to customize. |
|
|
A list of comma separated fields corresponding to questions on a VA (See standard). Allows for customization of which fields VA Explorer considers when attempting to detect duplicate VAs. Defaults to fields having to do with name, sex, date of birth, and date of death. |
Config values are read from .env
first, then docker-compose.yml
if unset,
and finally from framework settings in config/settings/production.py
during
end-user docker builds when config hasn’t been set elsewhere.
Note
If you update any of these configuration variables, please also run
docker-compose up -d
once more to push your .env
file updates to the various
containers.
For further configuration information, particularly for integrating with external services such as ODK and DHIS2, please see Integrations.