-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwrangler.toml_example
66 lines (54 loc) · 1.41 KB
/
wrangler.toml_example
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
name = "cf-n8n-proxy"
main = "src/index.ts"
compatibility_date = "2024-03-04"
compatibility_flags = [ "nodejs_compat", "nodejs_als" ]
workers_dev = true
#logpush = true
[[unsafe.bindings]]
name = "RATELIMITER"
type = "ratelimit"
namespace_id = "1001"
simple = { limit = 100, period = 60 }
[[queues.producers]]
queue = "cf-n8n-proxy"
binding = "ERROR_QUEUE"
[[queues.consumers]]
queue = "cf-n8n-proxy"
max_batch_size = 100
max_batch_timeout = 30
[[kv_namespaces]]
binding = "DEDUPLICATION_KV"
id = "<mykvid>"
[vars]
ENVIRONMENT = "dev"
PROXY_DOMAIN = "https://example.com"
DEDUPLICATION = false
DEDUPLICATION_TTL = 60
[[env.production.queues.producers]]
queue = "cf-n8n-proxy-production"
binding = "ERROR_QUEUE"
[[env.production.queues.consumers]]
queue = "cf-n8n-proxy-production"
max_batch_size = 100
max_batch_timeout = 30
max_retries = 100
dead_letter_queue = "dlq-cf-n8n-proxy-production"
[[env.production.kv_namespaces]]
binding = "DEDUPLICATION_KV"
id = "<mykvid>"
[[env.production.unsafe.bindings]]
name = "RATELIMITER"
type = "ratelimit"
namespace_id = "1001"
simple = { limit = 100, period = 60 }
[env.production]
workers_dev = false
routes = [
{ pattern = "example.com/webhook/*", zone_name = "example.com" },
{ pattern = "example.com/webhook-test/*", zone_name = "example.com" },
]
[env.production.vars]
ENVIRONMENT = "production"
PROXY_DOMAIN = "https://example.com"
DEDUPLICATION = false
DEDUPLICATION_TTL = 60