From 7913e07456f9ad129e64d02dba7d14c94784e6b2 Mon Sep 17 00:00:00 2001 From: tahzeer Date: Mon, 2 Nov 2026 17:15:16 +0530 Subject: [PATCH 1/2] G2P-5803 docs: update example env --- .../.env.example | 25 ++++++++----------- .../.env.example | 25 ++++++++----------- 2 files changed, 20 insertions(+), 30 deletions(-) diff --git a/apis/openg2p-pbms-staff-portal-api/.env.example b/apis/openg2p-pbms-staff-portal-api/.env.example index 3449ce3..9d97d29 100644 --- a/apis/openg2p-pbms-staff-portal-api/.env.example +++ b/apis/openg2p-pbms-staff-portal-api/.env.example @@ -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/sync/search?reg_type=..®_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/sync/search diff --git a/core/openg2p-bg-task-celery-workers/.env.example b/core/openg2p-bg-task-celery-workers/.env.example index 344ff9d..9201341 100644 --- a/core/openg2p-bg-task-celery-workers/.env.example +++ b/core/openg2p-bg-task-celery-workers/.env.example @@ -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/sync/search?reg_type=..®_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/sync/search # One image runs worker or beat. The chart sets these per deployment. CELERY_APP=openg2p_bg_task_celery_workers.main.celery_app From 91cd2d479bb8ad1b3c88738a78b8037b08cef402 Mon Sep 17 00:00:00 2001 From: tahzeer Date: Fri, 6 Nov 2026 11:41:32 +0530 Subject: [PATCH 2/2] docs: update example env for registry adapter URLs --- apis/openg2p-pbms-staff-portal-api/.env.example | 4 ++-- core/openg2p-bg-task-celery-workers/.env.example | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apis/openg2p-pbms-staff-portal-api/.env.example b/apis/openg2p-pbms-staff-portal-api/.env.example index 9d97d29..069e180 100644 --- a/apis/openg2p-pbms-staff-portal-api/.env.example +++ b/apis/openg2p-pbms-staff-portal-api/.env.example @@ -9,10 +9,10 @@ STAFF_PORTAL_API_DB_DBNAME=bgtaskdb # 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/sync/search?reg_type=..®_record_type=..&timeout=30&ssl_verify=true +# dci: full search URL, http(s)://host/dci/registry/sync/search?reg_type=..®_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/sync/search +REGISTRY_ADAPTERS_DISABILITY_CONNECTION_STRING=http://localhost:8000/dci/registry/sync/search diff --git a/core/openg2p-bg-task-celery-workers/.env.example b/core/openg2p-bg-task-celery-workers/.env.example index 9201341..81226f0 100644 --- a/core/openg2p-bg-task-celery-workers/.env.example +++ b/core/openg2p-bg-task-celery-workers/.env.example @@ -31,13 +31,13 @@ BG_TASK_CELERY_WORKERS_DB_DBNAME_ASYNC=bgtaskdb # 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/sync/search?reg_type=..®_record_type=..&timeout=30&ssl_verify=true +# dci: full search URL, http(s)://host/dci/registry/sync/search?reg_type=..®_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/sync/search +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