docs.slloy.com · Cloudflare Workers + Zero Trust Access

Slloy Operations & Engineering Documentation

Authoritative technical and operational handbook for slloy.com: pricing and margin guardrails, AI model catalogs, asynchronous generation and settlement pipelines, compliance redlines, SEO/redirect governance, security boundaries, and disaster recovery runbooks.

1. Business, Pricing & Channels

9 subscription and credit pack plans, dual-line margin guardrails (50% target / 20% floor), 5 image + 12 video models, 15 effects, Stripe lifecycle, 3DS, disputes, and channel procurement.

2. Generation, Settlement & Safeguards

Accept-and-queue Cloudflare Queue image pipeline, pure-white product framing, video polling + 5-minute sweeper, 11 localized failCodes, and tiered daily spending caps.

3. Prompt Library, Compliance & Translation

8 deliverable families (A–H), 10 platforms, 60s isolate cache with generation invalidation, ring-queue recommendations, 6 compliance redlines, and Workers AI edge translation.

4. SEO, i18n & Redirect Governance

14 supported locales (including Arabic & Hebrew RTL), Worker-level locale negotiation, 75-char Title gates, sitemap indexing rules, and 882 table-driven 301 redirects.

5. Auth, Admin & Security

Customer Better Auth vs. staff_accounts separation, Turnstile + DoH MX registration guards, 3-tier Admin RBAC, paidCny vs. estimateCny accounting, and Cloudflare Access Zero Trust.

6. Operations, Deployment & DR

Production Cloudflare Workers handbook, Staging & QA tools, per-branch Feature Environments, append-only R2 backups, and quarterly Neon 7-day PITR recovery drills.

7. Architecture, Design & Testing

Public site design tokens (dark & monochrome themes), browser reference image normalization + Worker header sniffing, request cancellation observability, and Postgres template DB tests.