name = "magistry-upload-broker"
main = "index.js"
compatibility_date = "2026-06-01"

[vars]
MAGISTRY_PINATA_GROUP_ID = "PASTE_PUBLIC_PINATA_GROUP_ID"
MAGISTRY_ALLOWED_ORIGINS = "https://magistry.eth,https://id.magistry.eth,https://registry.magistry.eth,https://executive.magistry.eth"
MAGISTRY_RESTRICTED_UPLOAD_DOMAINS = "executive.magistry.eth"
# Wallets allowed to publish signed registry heads through /v1/registry-head.
MAGISTRY_REGISTRY_HEAD_SIGNERS = "0xB5b58946e4a5098412904cAf2A499bDdcBF5Ef1B"
# Optional: require specific wallets for restricted domains.
# MAGISTRY_APPROVED_UPLOAD_WALLETS = "0x..."
# Optional: use your own Ethereum mainnet RPC.
# ETHEREUM_RPC_URL = "https://..."

# Set secrets with Wrangler:
# wrangler secret put PINATA_JWT
