forked from MutinyWallet/blastr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwrangler.toml
116 lines (92 loc) · 2.85 KB
/
wrangler.toml
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
name = "blastr"
main = "build/worker/shim.mjs"
compatibility_date = "2022-01-20"
# replace with your domain info - TODO this might not be required but we added it for ours.
routes = [
{ pattern = "nostr.mutinywallet.com/", zone_id = "2b9268714ce8d1c4431e8046d4ba55d3" },
{ pattern = "nostr.mutinywallet.com/event", zone_id = "2b9268714ce8d1c4431e8046d4ba55d3" }
]
# replace with your KV store info
# create the queues with `wrangler kv:namespace create PUBLISHED_NOTES` and the same command with the `--preview` flag.
# put your queue IDs below
kv_namespaces = [
{ binding = "PUBLISHED_NOTES", id = "afa24a392a5a41f6b1655507dfd9b97a", preview_id = "0b334aece8d74c3ab90e3e99db569ce8" }
]
[vars]
WORKERS_RS_VERSION = "0.0.13"
# Replace with all the queues you created, if you named them different.
# create the queues with: `wrangler queues create {NAME}`
# TODO make these more dynamic
[[queues.producers]]
queue = "nostr-events-pub-1-b"
binding = "nostr-events-pub-1-b"
[[queues.producers]]
queue = "nostr-events-pub-2-b"
binding = "nostr-events-pub-2-b"
[[queues.producers]]
queue = "nostr-events-pub-3-b"
binding = "nostr-events-pub-3-b"
[[queues.producers]]
queue = "nostr-events-pub-4-b"
binding = "nostr-events-pub-4-b"
[[queues.producers]]
queue = "nostr-events-pub-5-b"
binding = "nostr-events-pub-5-b"
[[queues.producers]]
queue = "nostr-events-pub-6-b"
binding = "nostr-events-pub-6-b"
[[queues.producers]]
queue = "nostr-events-pub-7-b"
binding = "nostr-events-pub-7-b"
[[queues.producers]]
queue = "nostr-events-pub-8-b"
binding = "nostr-events-pub-8-b"
[[queues.producers]]
queue = "nostr-events-pub-9-b"
binding = "nostr-events-pub-9-b"
[[queues.producers]]
queue = "nostr-events-pub-10-b"
binding = "nostr-events-pub-10-b"
# consumers
[[queues.consumers]]
queue = "nostr-events-pub-1-b"
max_batch_size = 100
max_batch_timeout = 5 # this is the best one, run quicker
[[queues.consumers]]
queue = "nostr-events-pub-2-b"
max_batch_size = 100
max_batch_timeout = 15
[[queues.consumers]]
queue = "nostr-events-pub-3-b"
max_batch_size = 100
max_batch_timeout = 15
[[queues.consumers]]
queue = "nostr-events-pub-4-b"
max_batch_size = 100
max_batch_timeout = 15
[[queues.consumers]]
queue = "nostr-events-pub-5-b"
max_batch_size = 100
max_batch_timeout = 15
[[queues.consumers]]
queue = "nostr-events-pub-6-b"
max_batch_size = 100
max_batch_timeout = 15
[[queues.consumers]]
queue = "nostr-events-pub-7-b"
max_batch_size = 100
max_batch_timeout = 15
[[queues.consumers]]
queue = "nostr-events-pub-8-b"
max_batch_size = 100
max_batch_timeout = 15
[[queues.consumers]]
queue = "nostr-events-pub-9-b"
max_batch_size = 100
max_batch_timeout = 15
[[queues.consumers]]
queue = "nostr-events-pub-10-b"
max_batch_size = 100
max_batch_timeout = 15
[build]
command = "cargo install -q worker-build --version 0.0.9 && worker-build --release"