Initial import of verae-middleware from zapier monorepo

This commit is contained in:
George Lambert 2026-09-11 14:06:29 -04:00
commit c6f7d93bbb
66 changed files with 6590 additions and 0 deletions

35
.env.example Normal file
View file

@ -0,0 +1,35 @@
# HTTP
PORT=3100
HOST=0.0.0.0
# Upstream Verae
VERAE_API_BASE_URL=https://api.veraetime.net
MOCK_VERAE=false
# NATS (Phase 7+)
# NS1 JetStream is 127.0.0.1:4222 on 70.88.205.138 (not public).
# Tunnel: ssh -fN -L 14222:127.0.0.1:4222 marchon@70.88.205.138
# then NATS_URL=nats://127.0.0.1:14222
NATS_ENABLED=false
NATS_URL=nats://127.0.0.1:4222
WAIT_TIMEOUT_MS=25000
MOCK_JOB_COMPLETE_MS=150
# Security
TOKEN_SECRET=change-me-in-production
ADMIN_SECRET=change-me-admin
# Job polling
JOB_POLL_INTERVAL_MS=2000
JOB_POLL_MAX_ATTEMPTS=60
# Store
STORE_PATH=./data/store.json
# Billing UX
UPGRADE_URL=https://veraetime.net/billing
# Runtime debug (see docs/developer/debugging.md)
# DEBUG_VERAE=auth,nats,jobs,webhooks,http,billing
# DEBUG_VERAE_LEVEL=debug
# DEBUG_VERAE_FILE=/tmp/verae-zapier-debug.log