diff --git a/apis/openg2p-pbms-staff-portal-api/.env.example b/apis/openg2p-pbms-staff-portal-api/.env.example index 3449ce3..069e180 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/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/registry/sync/search diff --git a/core/openg2p-bg-task-celery-workers/.env.example b/core/openg2p-bg-task-celery-workers/.env.example index 344ff9d..81226f0 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/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/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