Integrate · 01
Integration index
The platform is useful without most integrations and complete with them. This index shows which service owns which capability, what configuration it needs, and where the operational surface lives.
Integration map
| Capability | Provider / mechanism | Required values | Safe default |
|---|---|---|---|
| Database | PostgreSQL (production), SQLite (local) | DB_* or POSTGRES_* | SQLite locally; PostgreSQL on the VPS. |
| SMTP or Resend / SendGrid / Postmark / Mailgun | DJANGO_EMAIL_*, provider key | SMTP backend; console in local tests. | |
| Payments | Stripe, Flutterwave, PayPal, cash on delivery | STRIPE_*, FLW_*, PAYPAL_* | COD only until a provider is configured. |
| Newsletter | Local capture or Mailchimp | NEWSLETTER_ESP, MAILCHIMP_* | Local capture. |
| Authentication | Password, Google OAuth, Apple OAuth, TOTP 2FA | OAuth client IDs and secrets | Password login; 2FA is opt-in per staff member. |
| AI | Local deterministic assistant or OpenAI | AI_PROVIDER, OPENAI_API_KEY | Local. |
| Push | Browser web push with VAPID | VAPID_PUBLIC_KEY, VAPID_PRIVATE_KEY | Disabled until keys are generated. |
| Social | X, LinkedIn, Meta/Instagram, Pinterest, TikTok adapters | Channel tokens and IDs | Scheduler idle. |
| Analytics | First-party plus optional GA4 / Meta CAPI | GA4_API_SECRET, META_CAPI_TOKEN | First-party analytics only. |
| Webhooks | Outbound signed event delivery | WebhookEndpoint records | No endpoints until created. |
Operational ownership
Each integration has a clear failure boundary. A missing email key prevents sends but does not block checkout. A missing card provider switches checkout to cash on delivery. A missing push key leaves the push composer idle. The platform should remain usable with only the database, static files and the core web service.
Configure one provider at a time and verify it before adding the next. Most production incidents come from a half-configured provider, not from a missing feature.
Where to check each integration
| Surface | Path |
|---|---|
| Integration health and test email | /dashboard/settings/ |
| Email delivery log | /dashboard/emails/ |
| Webhook delivery log | /dashboard/webhooks/ |
| Analytics provider health | /dashboard/analytics/ |
| Application readiness | /health/ready/ |
| Service logs | journalctl -u perfumz |
Secrets and configuration
Provider secrets belong in .env or the systemd environment, never in templates, the database or git. Database-backed settings can select a provider and hold public IDs, but not private API keys. Rotate a key by editing .env, restarting perfumz, and verifying the affected surface.
sudo systemctl restart perfumz
curl -fsS http://127.0.0.1:8007/health/ready/
sudo journalctl -u perfumz -n 60 --no-pager