Add Pretix ticketing integration (every-minute sidecar sync)
- docs/backend/pretix.md: Pretix REST API reference (auth, orders/items endpoints, pagination, rate limiting, worked example) - migration 20260909000000_pretix_sync.sql: events.pretix_organizer + pretix_event_slug; _map_ticket_type, _ensure_auth_user (QR token = password), sync_pretix_attendees (service-role-only, idempotent) - sidecar: pretixFetch/fetchPretixOrders/fetchPretixItems/transformPretix, runPretixSync + every-minute runPretixLoop, POST /run-pretix, /status extended with pretix state - admin: Pretix panel + recent runs in Interfaces, per-event Pretix config + Sync button in Events, api/types for Pretix - docker-compose: PRETIX_API_KEY / PRETIX_BASE / PRETIX_SYNC_INTERVAL_MS Verified on VM: 25 paid orders -> 25 attendees, auto-sync every minute, login via QR token works, idempotent (no duplicate registrations).
This commit is contained in:
1 parent
692df23149
commit
c7d095aff7
8 files changed
+1009
-10
No files matched your search
@@ -91,6 +91,13 @@ services:
|
||||
SUPABASE_SERVICE_ROLE_KEY: ${SUPABASE_SERVICE_ROLE_KEY:-eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZS1kZW1vIiwicm9sZSI6InNlcnZpY2Vfcm9sZSIsImV4cCI6MTk4MzgxMjk5Nn0.EGIM96RAZx35lJzdJsyH-qQwv8Hdp7fsn3W0YpN81IU}
|
||||
# Sessionize API key (required to run a sync). Set to your key.
|
||||
SESSIONIZE_API_KEY: ${SESSIONIZE_API_KEY:-}
|
||||
# Pretix API key (enables the every-minute paid-ticket sync). Set to your
|
||||
# team-level token. When empty, the Pretix auto-sync is disabled.
|
||||
PRETIX_API_KEY: ${PRETIX_API_KEY:-}
|
||||
# Pretix API base URL (default: the pretix.eu hosted service).
|
||||
PRETIX_BASE: ${PRETIX_BASE:-https://pretix.eu/api/v1}
|
||||
# How often the sidecar polls Pretix (default: 60000 ms = every minute).
|
||||
PRETIX_SYNC_INTERVAL_MS: ${PRETIX_SYNC_INTERVAL_MS:-60000}
|
||||
networks:
|
||||
- supabase
|
||||
restart: unless-stopped
|
||||
|
||||
Reference in new issue
Block a user