UNPP
  • UNPP Documentation
  • About
  • Glossary / Terminology
  • FAQ
  • Releases/Change Log
  • Report an Issue / Contact Us
  • Overview
    • Design
    • Navigation
    • Dashboard
    • User Management
    • Direct Selection & Retention (DSR)
    • Reports
    • ERP Integration
  • Partners
    • Registration
    • User Interface
    • Searching and pinning CFEIs
    • Answering for CFEI
    • Adding new Unsolicited Concept Note
    • Responding to Direct Selection
    • Organization Profile set up
    • Pre-Screening
  • Agencies
    • Overview
    • User Interface
    • New CFEIs set up
    • CFEIs
    • Maintain Calls for Expression of Interest
    • CFEI and Applications Assessment
    • Maintain Direct Selection
    • Maintain Unsolicited Concept Note
    • Partner's details
    • Partner Verification
    • Adding Observation to Partner's Profile
  • Technical Documentation
    • Development Setup
      • Development Data
    • Deployment / DevOps
      • Environment
      • Background tasks
    • ID System Process
    • Sanctions Screening
    • API Documentation
Powered by GitBook
On this page
  • Backend
  • Frontend
  • Proxy
  1. Technical Documentation
  2. Deployment / DevOps

Environment

Deployment process requires various environment variables to be configured for different services

Backend

Variable Name

Description

ENV

either dev for local development, to enable various debugging features, or production / staging

SECRET_KEY

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

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

Frontend

Variable Name

Description

MAP_BOX_KEY

Proxy

Variable Name

Description

DJANGO_APPLICATION_SERVICE_HOST

service / host where backend is located

FRONTEND_SERVICE_HOST

service / host where frontend is located

PreviousDeployment / DevOpsNextBackground tasks

Last updated 6 years ago

Django's secret key -

hostname application will be served on -

API key

API key

more information
more information
Mapbox
Mapbox