ADMINISTRATION
Settings
Where each part of Zeri Library is configured.
Snippe configuration snippets
Create a Snippe API key with collection:create scope and copy your webhook signing secret from Snippe Dashboard → Settings. Run these commands in your project terminal. Never put either secret in browser JavaScript.
supabase secrets set SNIPPE_API_KEY="snp_YOUR_API_KEY" SNIPPE_WEBHOOK_SECRET="whsec_YOUR_WEBHOOK_SECRET" SITE_URL="https://YOUR-DOMAIN"
USD prices are shown to readers with an estimated TZS equivalent using this rate. Keep the public USD_TZS_DISPLAY_RATE in js/config.js equal to this Snippe checkout conversion rate. TZS prices are charged as stored. Snippe checkout accepts TZS only and has a minimum payment of TZS 500.
supabase secrets set SNIPPE_USD_TZS_RATE="2600"
Register this HTTPS webhook endpoint in Snippe Dashboard → Webhooks and enable payment.completed, payment.failed, payment.voided and payment.expired.
https://YOUR-PROJECT-REF.supabase.co/functions/v1/snippe-webhook
supabase functions deploy snippe-checkout supabase functions deploy snippe-confirm supabase functions deploy snippe-webhook --no-verify-jwt
Keep your Snippe API key and webhook signing secret in Supabase Edge Function secrets only.
Admin team
Shown on the contact page and payment screens.
Password reset
Reset emails link to SITE_URL/reset-password.html. Set SITE_URL in js/config.js and the same address under Supabase → Authentication → URL Configuration.
Site settings live in the Supabase site_settings table.