Files
clawshow-api/wrangler.jsonc
2026-03-19 18:37:53 +08:00

85 lines
2.5 KiB
JSON

{
"name": "web-relay",
"main": "src/index.ts",
"compatibility_date": "2025-03-10",
"compatibility_flags": [
"nodejs_compat"
],
"migrations": [
{
"tag": "v1",
"new_classes": [
"ChatRelay"
],
},
],
"observability": {
"logs": {
"enabled": true,
"invocation_logs": true
}
},
// Shared bindings & dev defaults — available via `wrangler dev`
"vars": {
"BETTER_AUTH_URL": "http://192.168.0.117:8787/api/auth",
"RELAY_URL": "http://192.168.0.117:8787",
"BETTER_AUTH_SECRET": "It3546porQSYeKhQyplQRRjmohE5AmR6rF4WoKq85t0=",
"OPENCLAW_AUTH_TOKEN": "It3546porQSYeKhQyplQRRjmohE5AmR6rF4WoKq85t0=",
"AWS_ACCESS_KEY_ID": "AKIAYRH5NGRSWHN2L4M6",
"AWS_SECRET_ACCESS_KEY": "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",
"AWS_BUCKET_NAME": "modal-media-cache",
"AWS_LOCATION": "ap-northeast-2",
"ALLOWED_ORIGINS": "http://localhost:3000,http://localhost:3001,http://localhost:3002,http://localhost:3003,http://192.168.0.117:3000"
},
"durable_objects": {
"bindings": [
{
"name": "CHAT_RELAY",
"class_name": "ChatRelay",
},
],
},
"d1_databases": [
{
"binding": "AUTH_DB",
"database_name": "clawshow-db",
"database_id": "b2d654ab-20b8-4502-b37f-cbcd1ce80e00",
},
],
"env": {
"prod": {
"vars": {
"BETTER_AUTH_URL": "https://clawshow-api.bowong.cc/api/auth",
"BETTER_AUTH_SECRET": "It3546porQSYeKhQyplQRRjmohE5AmR6rF4WoKq85t0=",
"OPENCLAW_AUTH_TOKEN": "It3546porQSYeKhQyplQRRjmohE5AmR6rF4WoKq85t0=",
"RELAY_URL": "https://clawshow-api.bowong.cc",
"AWS_ACCESS_KEY_ID": "AKIAYRH5NGRSWHN2L4M6",
"AWS_SECRET_ACCESS_KEY": "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",
"AWS_BUCKET_NAME": "modal-media-cache",
"AWS_LOCATION": "ap-northeast-2",
"ALLOWED_ORIGINS": "http://localhost:3000,http://localhost:3001,http://localhost:3002,http://localhost:3003,https://clawshow.bowong.cc"
},
"durable_objects": {
"bindings": [
{
"name": "CHAT_RELAY",
"class_name": "ChatRelay"
}
]
},
"d1_databases": [
{
"binding": "AUTH_DB",
"database_name": "clawshow-db",
"database_id": "b2d654ab-20b8-4502-b37f-cbcd1ce80e00"
}
],
"routes": [
{
"pattern": "clawshow-api.bowong.cc",
"custom_domain": true
}
]
}
}
}