mirror of
https://github.com/hanzoai/id-worker.git
synced 2026-10-30 18:33:58 +00:00
Single CF Worker serves all IAM login pages across 6 routes (hanzo.id, lux.id, pars.id, iam.lux.network, id.lux.network, id.zoo.network) with per-org accent colors, inline SVG logos, taglines, and feature lists. Dark theme throughout. Two-pane layout with brand pane + auth pane supporting portal, login, signup, forgot password, social auth (Google/GitHub), and web3 wallet connect flows.
21 lines
784 B
TOML
21 lines
784 B
TOML
name = "hanzo-id"
|
|
main = "src/worker.js"
|
|
compatibility_date = "2024-01-01"
|
|
|
|
# All IAM login domains route through this single worker.
|
|
# The worker resolves org-specific branding from the request hostname.
|
|
# DNS must be proxied through Cloudflare (orange cloud) for each domain.
|
|
routes = [
|
|
{ pattern = "hanzo.id/*", zone_name = "hanzo.id" },
|
|
{ pattern = "lux.id/*", zone_name = "lux.id" },
|
|
{ pattern = "pars.id/*", zone_name = "pars.id" },
|
|
{ pattern = "iam.lux.network/*", zone_name = "lux.network" },
|
|
{ pattern = "id.lux.network/*", zone_name = "lux.network" },
|
|
{ pattern = "id.zoo.network/*", zone_name = "zoo.network" },
|
|
]
|
|
|
|
[vars]
|
|
IAM_ORIGIN = "https://iam.hanzo.ai"
|
|
# Proxy to the Pages deployment for the marketing site
|
|
MARKETING_ORIGIN = "https://hanzo-id.pages.dev"
|