Skip to content

Environment Variables & Configuration

No .env Files

Biograph does not use .env files. All configuration is managed through Frappe's built-in systems.

Frappe Site Config

All site-level configuration lives in sites/{site}/site_config.json (managed by Frappe):

KeyPurpose
db_name, db_passwordMariaDB credentials
redis_cache, redis_queueRedis connection URLs
developer_modeEnables dev features (used by 1 guest endpoint)
mail_server, mail_portEmail configuration

Application Configuration (DocTypes)

Healthcare Settings (singleton)

Configured via Desk > Healthcare Settings. Key fields:

SettingPurpose
Default appointment typeUsed by patient portal for booking
Default practitioner chargeFallback consultation fee
Payment gatewayRazorpay/Stripe for portal payments
Show diagnostics in portalToggle portal diagnostics tab
Patient registration web formEnable/disable public registration
SMS settingsAppointment reminder SMS text templates

ABDM Settings (singleton, India regional)

SettingPurpose
client_idABDM API client ID
client_secretABDM API client secret
auth_base_urlABDM authentication endpoint

Code References

Only one direct reference to Frappe config in the codebase:

python
# healthcare/www/patient_portal.py
if frappe.conf.developer_mode:
    # allows guest access to patient portal bootstrap in dev mode

All other configuration is read from DocTypes via frappe.get_single("Healthcare Settings") or frappe.db.get_single_value(...).