Environment
Deployment process requires various environment variables to be configured for different services
Last updated
Deployment process requires various environment variables to be configured for different services
Last updated
Variable Name
Description
ENV
either dev
for local development, to enable various debugging features, or production / staging
SECRET_KEY
Django's secret key - more information
POSTGRES_DB
name of postgres database to connect to
POSTGRES_USER
username to use for database connection
POSTGRES_PASSWORD
password to use for database connection
POSTGRES_HOST
database hostname
POSTGRES_SSL_MODE
optionally set to on
, to require SSL mode
DJANGO_ALLOWED_HOST
hostname application will be served on - more information
EMAIL_HOST
SMTP server address
EMAIL_PORT
SMTP server port
EMAIL_HOST_USER
SMTP user
EMAIL_HOST_PASSWORD
SMTP user password
EMAIL_USE_TLS
optionally set to true
, to require TSL
UNHCR_API_HOST
hostname of UNHCR API for ERP integration
UNHCR_API_USERNAME
self-explanatory
UNHCR_API_PASSWORD
self-explanatory
UNICEF_PARTNER_DETAILS_URL
UNICEF partner details service URL
UNICEF_API_USERNAME
self-explanatory
UNICEF_API_PASSWORD
self-explanatory
WFP_API_HOST
hostname of WFP API for ERP integration
WFP_API_TOKEN
self-explanatory
UNPP_FRONTEND_HOST
hostname of where the frontend is located
ALERTS_EMAIL
(optional) email where Django error reports will be sent
MAP_BOX_KEY
Mapbox API key
Variable Name
Description
MAP_BOX_KEY
Mapbox API key
Variable Name
Description
DJANGO_APPLICATION_SERVICE_HOST
service / host where backend is located
FRONTEND_SERVICE_HOST
service / host where frontend is located