feat: import web relay worker from monorepo
This commit is contained in:
85
wrangler.jsonc
Normal file
85
wrangler.jsonc
Normal file
@@ -0,0 +1,85 @@
|
||||
{
|
||||
"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": "kfAqoOmIiyiywi25xaAkJUQbZ/EKDnzvI6NRCW1l",
|
||||
"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": "kfAqoOmIiyiywi25xaAkJUQbZ/EKDnzvI6NRCW1l",
|
||||
"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
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user