chore: fill wrangler.toml KV/R2 IDs and routes for production deploy

cypher-executor: EXEC_CONTEXT, WEBHOOKS, CREDENTIALS_KV, ANALYTICS_KV KV IDs,
  arcrun-wasm R2, route cypher.arcrun.dev/*
registry: SUBMISSIONS_KV, ANALYTICS_KV KV IDs, arcrun-wasm R2,
  route registry.arcrun.dev/*
credentials: CREDENTIALS_KV KV ID

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-16 15:36:26 +08:00
parent a4ddf68621
commit 9168253357
3 changed files with 19 additions and 25 deletions
+2 -4
View File
@@ -2,13 +2,11 @@ name = "arcrun-credentials"
main = "src/index.ts"
compatibility_date = "2025-02-19"
compatibility_flags = ["nodejs_compat"]
workers_dev = true
# KV Namespace:加密 credential 儲存
[[kv_namespaces]]
binding = "CREDENTIALS_KV"
id = "" # 填入你的 KV Namespace ID(執行 wrangler kv namespace create CREDENTIALS_KV
id = "e7f4320f88d343f187e35e3543dd74c9"
[vars]
ENVIRONMENT = "production"
# ENCRYPTION_KEY: 256-bit AES keyhex),透過 wrangler secret set ENCRYPTION_KEY 設定
# ENCRYPTION_KEY 透過 wrangler secret set 設定
+10 -14
View File
@@ -3,38 +3,34 @@ main = "src/index.ts"
compatibility_date = "2025-02-19"
compatibility_flags = ["nodejs_compat"]
# KV Context Store:節點 output 透過 KV 傳遞,解決同名欄位衝突
# TTL 設為 1 小時,執行完後自動清除
[[kv_namespaces]]
binding = "EXEC_CONTEXT"
id = "" # 填入你的 KV Namespace ID
id = "616967a852eb450a8c01731f71ac8edd"
# Webhook Store:儲存 Workflow 定義,key = workflow name
[[kv_namespaces]]
binding = "WEBHOOKS"
id = "" # 填入你的 KV Namespace ID
id = "4d23ccd418414a729bd533ba8e3b341f"
# Credential StoreAES-GCM 加密存放用戶 API token
# Standard 模式:供 credential-injector 讀取加密 token
[[kv_namespaces]]
binding = "CREDENTIALS_KV"
id = "" # 填入你的 Credentials KV Namespace ID
id = "e7f4320f88d343f187e35e3543dd74c9"
# Analytics:執行統計(fire-and-forget,保留 90 天)
[[kv_namespaces]]
binding = "ANALYTICS_KV"
id = "" # 填入你的 Analytics KV Namespace ID
id = "a43b7997c8e54a34886c2995a853c720"
# R2 BucketWASM 零件二進位(arcrun.dev 公眾零件庫,或自架時填入自己的 bucket)
[[r2_buckets]]
binding = "WASM_BUCKET"
bucket_name = "arcrun-wasm"
# Workers AI
[ai]
binding = "AI"
[vars]
ENVIRONMENT = "production"
# MULTI_TENANT = "true" # Standard 模式(預設);設 "false" 啟用 Self-hosted 單租戶模式
# ENCRYPTION_KEY 透過 wrangler secret 設定hex-encoded 256-bit AES key
# MULTI_TENANT = "true"
# ENCRYPTION_KEY 透過 wrangler secret set 設定
[[routes]]
pattern = "cypher.arcrun.dev/*"
zone_name = "arcrun.dev"
+7 -7
View File
@@ -2,25 +2,25 @@ name = "arcrun-registry"
main = "src/index.ts"
compatibility_date = "2025-02-19"
compatibility_flags = ["nodejs_compat"]
workers_dev = true
# R2 Bucket:儲存公眾 .wasm 零件二進位
[[r2_buckets]]
binding = "WASM_BUCKET"
bucket_name = "arcrun-wasm" # 填入你的 R2 bucket 名稱
bucket_name = "arcrun-wasm"
# KV:零件審核狀態與執行統計
[[kv_namespaces]]
binding = "SUBMISSIONS_KV"
id = "" # 填入你的 KV Namespace ID
id = "d26ba96eb2e548b6af5e30bbb89a061b"
[[kv_namespaces]]
binding = "ANALYTICS_KV"
id = "" # 填入你的 KV Namespace ID
id = "a43b7997c8e54a34886c2995a853c720"
# Workers AI
[ai]
binding = "AI"
[vars]
ENVIRONMENT = "production"
[[routes]]
pattern = "registry.arcrun.dev/*"
zone_name = "arcrun.dev"