Advanced Configurations
Last updated
Last updated
All content on this page by eGov Foundation is licensed under a Creative Commons Attribution 4.0 International License.
Project factory service has a dependency on Kafka, Postgres, and Redis.
Changes in the HELM -
Auto-generate user password:
1. Password Management
Auto-generate user password:
Enables the system to generate a random password for new users.
Set a default user password:
Specifies a default password to be used if auto-generation is disabled.
2. User Duplication Check
Skip user creation if a mobile number already exists:
Prevents the creation of duplicate users by checking existing mobile numbers.
3. Tab Naming for Readme and Sheets
Readme Tab Name:
Defines the sheet name to be used for the ReadMe tab.
Tab names for different data sheets:
Sets tab names for facilities, boundary data, and user lists in the HCM Admin Console.
Localization and Default Locale
Set default locale:
Defines the default locale as "en_IN" unless overridden in the Helm values.
Localization module:
Specifies the localization module used for HCM schemas.
5. Logging Configuration
Set application log level:
Determines the verbosity of logs, defaulting to "info."
Set maximum debug characters:
Limits the maximum length of debug logs to 500 characters unless overridden.
6. User Mapping
Enable mapping users via a common parent:
Allows users to be linked based on a shared parent hierarchy.
7. Automatic Retry Mechanism
Retry when specific HTTP errors occur:
Automatically retries operations if the "socket hang up" error occurs.
8. Localisation wait time in Boundary Creation
Localisation wait time in Boundary Creation
9. Localisation Chunk Size
Localisation Chunk Size
KAFKA_BROKER_HOST
egov-config
kafka-brokers
EGOV_MDMS_HOST
egov-service-host
egov-mdms-service
EGOV_MDMS_V2_HOST
egov-service-host
mdms-service-v2
EGOV_FILESTORE_SERVICE_HOST
egov-service-host
egov-filestore
EGOV_IDGEN_HOST
egov-service-host
egov-idgen
EGOV_FACILITY_HOST
egov-service-host
facility
EGOV_BOUNDARY_HOST
egov-service-host
boundary-service
EGOV_PROJECT_HOST
egov-service-host
health-project
EGOV_USER_HOST
egov-service-host
egov-user
EGOV_PRODUCT_HOST
egov-service-host
product
EGOV_HRMS_HOST
egov-service-host
health-hrms
EGOV_LOCALIZATION_HOST
egov-service-host
egov-localization
EGOV_HEALTH_INDIVIDUAL_HOST
egov-service-host
health-individual
EGOV_AUDIT_HOST
egov-service-host
audit-service
EGOV_PLAN_SERVICE_HOST
egov-service-host
plan-service
EGOV_CENSUS_HOST
egov-service-host
census-service
FILE_STORE_SERVICE_END_POINT
filestore/v1/files
EGOV_MDMS_V2_SEARCH_ENDPOINT
mdms-v2/v2/_search
EGOV_MDMS_V1_SEARCH_ENDPOINT
mdms-v2/v1/_search
EGOV_IDGEN_PATH
egov-idgen/id/_generate
EGOV_MDMS_SCHEMA_PATH
mdms-v2/schema/v1/_search
EGOV_BOUNDARY_RELATIONSHIP_SEARCHPATH
boundary-service/boundary-relationships/_search
EGOV_BOUNDARY_SERVICE_SEARCHPATH
boundary-service/boundary/_search
EGOV_BOUNDARY_HIERARCHY_SEARCHPATH
boundary-service/boundary-hierarchy-definition/_search
HEALTH_PROJECT_CREATE_PATH
health-project/v1/_create
EGOV_PROJECT_STAFF_CREATE_PATH
health-project/staff/v1/_create
EGOV_PROJECT_RESOURCE_CREATE_PATH
health-project/resource/v1/_create
EGOV_PROJECT_RESOURCE_FACILITY_PATH
health-project/facility/v1/_create
EGOV_USER_SEARCH_PATH
user/_search
EGOV_FACILITY_SEARCH_PATH
facility/v1/_search
EGOV_PRODUCT_VARIANT_SEARCH_PATH
product/variant/v1/_search
EGOV_BOUNDARY_ENTITY_SEARCHPATH
boundary-service/boundary/_search
EGOV_FACILITY_BULK_CREATE
facility/v1/bulk/_create
EGOV_HEALTH_INDIVIDUAL_SEARCH
health-individual/v1/_search
EGOV_PLAN_FACILITY_SEARCH
plan-service/plan/facility/_search
EGOV_PLAN_FACILITY_CONFIG_SEARCH
plan-service/config/_search
EGOV_CENSUS_SEARCH
census-service/_search
EGOV_PLAN_SEARCH
plan-service/plan/_search
KAFKA_SAVE_CAMPAIGN_DETAILS_TOPIC
save-campaign-details
KAFKA_UPDATE_CAMPAIGN_DETAILS_TOPIC
update-campaign-details
The configuration snippet provides the details required to set up and connect to a database, including environment-specific handling, credentials, schema information, and other related settings. Below is a structured breakdown:
Database Connection Information
DB_URL
health-db-url
or db-url
from egov-config
URL for connecting to the database. Uses health-db-url
in the "health" namespace, else db-url
.
DB_HOST
db-host
from egov-config
Hostname or IP address of the database server.
DB_PORT
"5432"
Port number for database connection (default PostgreSQL port).
DB_NAME
db-name
from egov-config
Name of the database being connected to.
DB_SCHEMA
Namespace value or "public"
Specifies the schema within the database. Defaults to "public"
if no namespace is provided.
DB_USER
username
from db
secret
Database username used for authentication.
DB_PASSWORD
password
from db
secret
Database password for authentication.
Flyway Migration Information
FLYWAY_USER
flyway-username
from db
secret
User for running Flyway migrations.
FLYWAY_PASSWORD
flyway-password
from db
secret
Password for Flyway migration user.
FLYWAY_LOCATIONS
flyway-locations
from egov-config
Directory or path for Flyway migration scripts.
SCHEMA_TABLE
schemaTable
from initContainers.dbMigration
Table name for tracking Flyway migrations.
General Notes
ConfigMap and Secrets Integration: Sensitive data like DB_USER
, DB_PASSWORD
, and Flyway credentials are securely retrieved from Kubernetes secrets (db
secret). Non-sensitive configurations like DB_HOST
and DB_NAME
are stored in ConfigMaps (egov-config
).
Namespace-Specific Configuration: The DB_URL
and DB_SCHEMA
are tailored for specific namespaces. For example, the "health" namespace uses a dedicated health-db-url
key and the namespace value for the schema.
Default Settings: Where applicable, defaults are provided. For instance, the schema defaults to "public"
and the port defaults to 5432
.
These configurations enhance the flexibility and usability of the Project Factory Service, ensuring smoother operations and better alignment with user needs.