Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 10 additions & 15 deletions apis/openg2p-pbms-staff-portal-api/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,13 @@ STAFF_PORTAL_API_DB_HOSTNAME=localhost
STAFF_PORTAL_API_DB_PORT=5432
STAFF_PORTAL_API_DB_DBNAME=bgtaskdb

# Registry adapter. Same variables on the Celery worker. db or dci.
REGISTRY_ADAPTERS_CONNECTOR=db
REGISTRY_ADAPTERS_DB_DRIVER=postgresql
REGISTRY_ADAPTERS_DB_USERNAME=postgres
REGISTRY_ADAPTERS_DB_PASSWORD=postgres
REGISTRY_ADAPTERS_DB_HOSTNAME=localhost
REGISTRY_ADAPTERS_DB_PORT=5432
REGISTRY_ADAPTERS_DB_DBNAME=socialregistrydb
REGISTRY_ADAPTERS_PARTNER_API_URL=http://localhost:8000
REGISTRY_ADAPTERS_PARTNER_API_TIMEOUT=30
REGISTRY_ADAPTERS_PARTNER_API_SSL_VERIFY=true
REGISTRY_ADAPTERS_FARMER_REG_TYPE=Farmer
REGISTRY_ADAPTERS_HOUSEHOLD_REG_TYPE=Household
REGISTRY_ADAPTERS_FARMER_REG_RECORD_TYPE=Farmer
REGISTRY_ADAPTERS_HOUSEHOLD_REG_RECORD_TYPE=Household
# Registry adapters (pbms-connectors). Same variables on the Celery worker.
# Per register: connector db or dci, and a connection string.
# db: postgresql://user:pass@host:5432/dbname
# dci: full search URL, http(s)://host/dci/registry/sync/search?reg_type=..&reg_record_type=..&timeout=30&ssl_verify=true
REGISTRY_ADAPTERS_FARMER_CONNECTOR=db
REGISTRY_ADAPTERS_FARMER_CONNECTION_STRING=postgresql://postgres:postgres@localhost:5432/socialregistrydb
REGISTRY_ADAPTERS_HOUSEHOLD_CONNECTOR=db
REGISTRY_ADAPTERS_HOUSEHOLD_CONNECTION_STRING=postgresql://postgres:postgres@localhost:5432/socialregistrydb
REGISTRY_ADAPTERS_DISABILITY_CONNECTOR=dci
REGISTRY_ADAPTERS_DISABILITY_CONNECTION_STRING=http://localhost:8000/dci/registry/sync/search
25 changes: 10 additions & 15 deletions core/openg2p-bg-task-celery-workers/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -28,21 +28,16 @@ BG_TASK_CELERY_WORKERS_DB_HOSTNAME_ASYNC=localhost
BG_TASK_CELERY_WORKERS_DB_PORT_ASYNC=5432
BG_TASK_CELERY_WORKERS_DB_DBNAME_ASYNC=bgtaskdb

# Registry adapter. Same variables on the staff API. db or dci.
REGISTRY_ADAPTERS_CONNECTOR=db
REGISTRY_ADAPTERS_DB_DRIVER=postgresql
REGISTRY_ADAPTERS_DB_USERNAME=postgres
REGISTRY_ADAPTERS_DB_PASSWORD=postgres
REGISTRY_ADAPTERS_DB_HOSTNAME=localhost
REGISTRY_ADAPTERS_DB_PORT=5432
REGISTRY_ADAPTERS_DB_DBNAME=socialregistrydb
REGISTRY_ADAPTERS_PARTNER_API_URL=http://localhost:8000
REGISTRY_ADAPTERS_PARTNER_API_TIMEOUT=30
REGISTRY_ADAPTERS_PARTNER_API_SSL_VERIFY=true
REGISTRY_ADAPTERS_FARMER_REG_TYPE=Farmer
REGISTRY_ADAPTERS_HOUSEHOLD_REG_TYPE=Household
REGISTRY_ADAPTERS_FARMER_REG_RECORD_TYPE=Farmer
REGISTRY_ADAPTERS_HOUSEHOLD_REG_RECORD_TYPE=Household
# Registry adapters (pbms-connectors). Same variables on the staff API.
# Per register: connector db or dci, and a connection string.
# db: postgresql://user:pass@host:5432/dbname
# dci: full search URL, http(s)://host/dci/registry/sync/search?reg_type=..&reg_record_type=..&timeout=30&ssl_verify=true
REGISTRY_ADAPTERS_FARMER_CONNECTOR=db
REGISTRY_ADAPTERS_FARMER_CONNECTION_STRING=postgresql://postgres:postgres@localhost:5432/socialregistrydb
REGISTRY_ADAPTERS_HOUSEHOLD_CONNECTOR=db
REGISTRY_ADAPTERS_HOUSEHOLD_CONNECTION_STRING=postgresql://postgres:postgres@localhost:5432/socialregistrydb
REGISTRY_ADAPTERS_DISABILITY_CONNECTOR=dci
REGISTRY_ADAPTERS_DISABILITY_CONNECTION_STRING=http://localhost:8000/dci/registry/sync/search

# One image runs worker or beat. The chart sets these per deployment.
CELERY_APP=openg2p_bg_task_celery_workers.main.celery_app
Expand Down
Loading