managarten/services/mana-auth/src
Till JS 71ec5e7123 feat(cards-server): Phase α.4 — Dockerfile + compose + tunnel route
Wires cards-server into the Mac-mini stack so we can deploy alongside
the rest of the Mana services.

  - Dockerfile mirrors the mana-credits 2-stage pattern (node+pnpm
    installer → bun runtime), exposes :3072, includes a /health
    healthcheck.
  - docker-compose.macmini.yml: new cards-server block right after
    mana-credits — depends on postgres + mana-auth, 128m mem, all the
    env knobs from the Phase-α config (author payout BPS, community-
    verified thresholds, sibling-service URLs).
  - cloudflared-config.yml: cards-api.mana.how → :3072. Distinct from
    cards.mana.how (the user-facing PWA) so the API surface is clearly
    separated.
  - sso-origins.ts: cards-api.mana.how added to PRODUCTION_TRUSTED_ORIGINS.
  - mana-auth CORS_ORIGINS in compose: cards-api.mana.how added.
    Restored whopxl.mana.how that had drifted out — sso-config.spec.ts
    had been flagging it but the missing entry surfaced when I added
    cards-api. spec is back to 8/8 green.

Deploy plan (next steps, not in this commit):
  1. ./scripts/mac-mini/build-app.sh cards-server
  2. docker exec mana-app-cards-server bun run db:push  (creates the
     `cards` schema + 16 tables in mana_platform)
  3. ./scripts/mac-mini/sync-tunnel-config.sh
  4. Smoke: curl https://cards-api.mana.how/health → 200

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-07 16:22:48 +02:00
..
auth feat(cards-server): Phase α.4 — Dockerfile + compose + tunnel route 2026-05-07 16:22:48 +02:00
db feat(feedback): rename community-identity columns + settings-section 2026-04-28 17:09:58 +02:00
email feat(auth): error-classification layer + passkey end-to-end 2026-04-24 01:52:51 +02:00
lib feat(auth): error-classification layer + passkey end-to-end 2026-04-24 01:52:51 +02:00
middleware refactor(shared-tailwind): rewrite themes.css to single-layer shadcn convention 2026-04-09 01:13:06 +02:00
routes feat(notes): isSpaceContext flag replaces kontext module (Option B) 2026-04-29 00:14:32 +02:00
services feat(notes): isSpaceContext flag replaces kontext module (Option B) 2026-04-29 00:14:32 +02:00
spaces feat(spaces): move access tier from user to space 2026-04-20 20:10:06 +02:00
config.ts feat(auth): error-classification layer + passkey end-to-end 2026-04-24 01:52:51 +02:00
index.ts feat(mana-auth): wire Glitchtip/Sentry error tracking via shared-error-tracking 2026-05-07 01:55:07 +02:00