Add verified email API key signup

This commit is contained in:
Samraaj Bath
2026-06-29 20:35:16 -07:00
parent 49a6541b24
commit cf8af6d936
15 changed files with 783 additions and 32 deletions
+7 -1
View File
@@ -5,9 +5,15 @@ PORT=8787
# CLONE_TTL_MS=1800000 # in-memory mode: how long results are retained
# API_KEYS= # comma-separated keys that can call /v1/clones and /mcp
# RATE_LIMIT_PER_MINUTE=60 # service-wide cap for authenticated clone/MCP calls
# SIGNUP_ENABLED=false # DB mode only: expose POST /v1/signup to mint API keys
# SIGNUP_ENABLED=false # DB mode only: expose public API-key signup routes
# SIGNUP_RATE_LIMIT_PER_HOUR=3
# DEFAULT_SIGNUP_KEY_RATE_LIMIT=30 # stored on minted keys; current limiter is service-wide
# SIGNUP_DIRECT_ENABLED=true # set false when using verified-email signup only
# RESEND_API_KEY= # enables POST /v1/signup/request + /v1/signup/verify
# SIGNUP_FROM_EMAIL=Ditto <hello@ditto.site>
# SIGNUP_VERIFY_URL=https://ditto.site/api-key
# SIGNUP_TOKEN_TTL_MINUTES=30
# SIGNUP_CORS_ORIGINS=https://ditto.site
# ---- Database + queue (Postgres; pg-boss uses the same DB) ----
DATABASE_URL=postgresql://postgres:postgres@localhost:5432/ditto_site