fleet-memory/hindsight-integrations/cloudflare-oauth-proxy/wrangler.toml
404sand808s aad07a141b
Add Cloudflare OAuth proxy integration for self-hosted Hindsight (#922)
Adds an OAuth 2.1 proxy Worker that connects cloud MCP clients
(claude.ai, Claude Code, Codex) to a self-hosted Hindsight instance
via Cloudflare Workers and Tunnel.

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-10 18:52:19 +02:00

21 lines
592 B
TOML

name = "hindsight-oauth-proxy"
main = "src/index.ts"
compatibility_date = "2025-03-01"
workers_dev = true
[[kv_namespaces]]
binding = "OAUTH_KV"
id = "your-kv-namespace-id"
[vars]
HINDSIGHT_ORIGIN = "https://your-hindsight-origin.example.com"
[[routes]]
pattern = "hindsight.yourdomain.com/*"
zone_name = "yourdomain.com"
# Secrets (set via `npx wrangler secret put`):
# - SESSION_SECRET (password for the login page)
# - PROXY_SECRET (header value for WAF rule on origin)
# - HINDSIGHT_API_TOKEN (Bearer token for Hindsight API)
# - ALLOWED_EMAIL (your email, used as the OAuth user ID)