MedsoAdmin
Soflabcorp platform — tenant usage, features, and stack control.
Control-plane users
Superadmin only. Create operator accounts that can
provision and set up tenants, but cannot stop stacks, restore data,
or view/edit cloud backup credentials or the WhatsApp sender. Choose a username other than
admin or env-admin. Those names stay
reserved for the env bootstrap SuperAdmin.
| Username | Role | Created |
|---|
No file-backed users yet. Env ADMIN_PASSWORD still works
as bootstrap superadmin.
WhatsApp sender
Platform-wide. Medso is the WhatsApp sender for every clinic, so the
Business number is registered once here, never in a clinic's
Messaging screen. Secrets are write-only: leave a secret field empty
to keep the saved value. After saving, roll the tenant stacks
(./scripts/roll-tenants.sh) so they pick up the change.
Webhook callback URL for Meta:
/api/whatsapp/webhook
Message usage
Billing counts are SEND ledger rows for each clinic, split into SMS and WhatsApp. Recharges and refunds are not counted. A SEND is still counted if a refund was written later. The default month is India Standard Time. SMS does not record a provider delivery status, so those rows show as Not tracked. WhatsApp statuses are accepted, sent, delivered, read, and failed. Provider failure text is not stored.
Totals skip clinics that could not be reached.
| Clinic | SMS | Total |
|---|
No clinics in the registry.
Messages
Newest first. Filter by clinic and status. 25 per page.
No SEND messages in this period.
| Clinic | Channel | When (IST) | Recipient | Status |
|---|
Cloud backup
Platform-wide. Daily tenant dumps stay on this VPS, then copy to
Google Drive or OneDrive if you pick a destination. rclone OAuth
still runs once on the VPS (rclone config). SMTP alert
secrets stay in .env.backup.
Backup schedule
Multiple daily slots per tenant (24-hour HH:MM).
Times are wall-clock in
Asia/Kolkata.
New tenants inherit clinic or Lab defaults automatically (no JSON
row required). The table below lists every registry
tenant; Source
defaults/lab means inherited,
override means stored under
tenants.<slug> in
tenants/backup-schedules.json.
Superadmin only — saving updates that file and remounts host
crontab so every configured slot gets a cron line.
./scripts/install-backup-cron.sh
(optional --run-now). Deploy also remounts cron.
Clinic defaults
Used when a tenant has no override and is not Lab edition.
Lab edition default
Tenants with MEDSO_PRODUCT_EDITION=lab and no
override (typically one nightly slot).
Per-tenant schedules
Inherited rows show resolved clinic/Lab times until you change them. Editing a slot and saving writes an override. Clear override (or empty times + save) falls back to Lab / clinic defaults. Add multiple slots for dual daily backups.
| Tenant | Edition | Source | Time slots (HH:MM) |
|---|
Daily backup runs
Newest first. Success means the dump finished; Uploaded means it copied to the cloud destination. Detail stays the command that failed. Reason is that command’s output.
No backup runs recorded yet. Install cron or run
./scripts/backup-tenants.sh.
| When (IST) | Status | Destination | Tenants | Detail |
|---|
| Slug | Host | Status | Users | Memory | CPU | Disk (DB + uploads) |
|---|
No tenants in registry yet.