Repository navigation
Expand file tree
/
Copy pathwrangler.dev.jsonc
More file actions
138 lines (138 loc) · 4.2 KB
/
Copy pathwrangler.dev.jsonc
File metadata and controls
138 lines (138 loc) · 4.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
{
"$schema": "node_modules/wrangler/config-schema.json",
// Second instance at dev.codebam.ca for federation debugging: real
// worker-to-worker federation with prod, both sides tailable.
// FEDERATION_STRICT_AUTH enables Synapse-style auth_events selection
// checks on inbound PDUs so dev reproduces resident-server rejections.
"name": "matrix-worker-codebam-dev",
"main": "src/index.ts",
// Expose the default workers.dev domain (matrix-worker-codebam-dev.codebam.workers.dev)
// so prod can federate with us across zones: prod's worker cannot fetch
// dev.codebam.ca directly (same-zone routing returns 522), but the
// workers.dev hostname is an ordinary external origin. The well-known
// below delegates federation there.
"workers_dev": true,
"compatibility_date": "2025-01-01",
"compatibility_flags": [
"nodejs_compat",
// Fetch same-zone hostnames (codebam.ca) via the public edge instead
// of worker-internal dispatch, which returned HTTP 530 for key fetches.
"global_fetch_strictly_public"
],
"observability": {
"enabled": true
},
"d1_databases": [
{
"binding": "DB",
"database_name": "matrix-db-codebam-dev",
"database_id": "fd00b766-e98a-4818-9b5b-d69fc7a1323f"
}
],
"kv_namespaces": [
{
"binding": "SESSIONS",
"id": "c89d13a183d34e44b16ca6f313b9bb62"
},
{
"binding": "DEVICE_KEYS",
"id": "8abcad8104e94c0eae77122fd9936bd2"
},
{
"binding": "CACHE",
"id": "20372de4bbe443ee8309f77754d12317"
},
{
"binding": "CROSS_SIGNING_KEYS",
"id": "7791f34b04a144ce9752daf09c15f586"
},
{
"binding": "ACCOUNT_DATA",
"id": "f1bed21396a4474aaa49fde7770c524a"
},
{
"binding": "ONE_TIME_KEYS",
"id": "43d32ae0a5e0489cbf464b057651d5e5"
}
],
"r2_buckets": [
{
"binding": "MEDIA",
"bucket_name": "matrix-media-codebam-ca-dev"
}
],
"durable_objects": {
"bindings": [
{ "name": "ROOMS", "class_name": "RoomDurableObject" },
{ "name": "SYNC", "class_name": "SyncDurableObject" },
{ "name": "FEDERATION", "class_name": "FederationDurableObject" },
{ "name": "CALL_ROOMS", "class_name": "CallRoomDurableObject" },
{ "name": "ADMIN", "class_name": "AdminDurableObject" },
{ "name": "USER_KEYS", "class_name": "UserKeysDurableObject" },
{ "name": "PUSH", "class_name": "PushDurableObject" },
{ "name": "RATE_LIMIT", "class_name": "RateLimitDurableObject" },
{ "name": "DELAYED_EVENTS", "class_name": "DelayedEventsDurableObject" },
{ "name": "LIVEKIT_SHIM", "class_name": "LiveKitShimDurableObject" }
]
},
"migrations": [
{
"tag": "v1",
"new_sqlite_classes": [
"RoomDurableObject",
"SyncDurableObject",
"FederationDurableObject",
"CallRoomDurableObject",
"AdminDurableObject",
"UserKeysDurableObject",
"PushDurableObject",
"RateLimitDurableObject",
"DelayedEventsDurableObject"
]
},
{
"tag": "v2",
"new_sqlite_classes": [
"LiveKitShimDurableObject"
]
}
],
"vars": {
"SERVER_NAME": "dev.codebam.ca",
"SERVER_VERSION": "0.1.0-dev",
"REGISTRATION_REQUIRE_TOKEN": "true",
"FEDERATION_STRICT_AUTH": "true",
// Delegate federation to the workers.dev domain: same-zone fetches from
// the prod worker to dev.codebam.ca fail (HTTP 522), so peers resolve
// us via well-known to this off-zone hostname instead.
"FEDERATION_WELL_KNOWN_M_SERVER": "matrix-worker-codebam-dev.codebam.workers.dev:443",
// Experimental Calls shim: point /livekit/get_token at our own signaling path.
// Rollback = restore the self-hosted LiveKit wss URL here.
"LIVEKIT_URL": "wss://dev.codebam.ca/livekit/signal"
},
"routes": [
"dev.codebam.ca/livekit/*",
"dev.codebam.ca/_matrix/*",
"dev.codebam.ca/oauth/*",
"dev.codebam.ca/.well-known/matrix/*",
"dev.codebam.ca/.well-known/openid-configuration*",
"dev.codebam.ca/.well-known/jwks.json*",
"dev.codebam.ca/admin*",
"dev.codebam.ca/_synapse/*",
"dev.codebam.ca/auth/oidc/*",
"dev.codebam.ca/calls/*",
"dev.codebam.ca/health*"
],
"workflows": [
{
"name": "room-join-workflow-codebam-dev",
"binding": "ROOM_JOIN_WORKFLOW",
"class_name": "RoomJoinWorkflow"
},
{
"name": "push-notification-workflow-codebam-dev",
"binding": "PUSH_NOTIFICATION_WORKFLOW",
"class_name": "PushNotificationWorkflow"
}
]
}