-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wrangler.toml
91 lines (74 loc) · 2 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
# #
# KeeWeb Favicon Cloudflare Worker
# #
name = "favicon"
main = "src/index.js"
compatibility_flags = [ "nodejs_compat" ]
compatibility_date = "2024-09-23"
# #
# The rate limiting API is in open beta.
# https://developers.cloudflare.com/workers/runtime-apis/bindings/rate-limit/
# #
[[unsafe.bindings]]
name = "favicon"
type = "ratelimit"
namespace_id = "1001"
simple = { limit = 30, period = 60 }
# #
# Environment - Production
# For production environment, use '-e production'
# #
[env.production]
name = "favicon"
workers_dev = true
# #
# Environment - Production - Vars
# #
[env.production.vars]
ENVIRONMENT = "production"
THROTTLE_DELAY_MS = 500
THROTTLE_AGGRESSIVE = false
THROTTLE_AGGRESSIVE_PUNISH_MS = 5000
THROTTLE_DAILY_ENABLED = false
THROTTLE_DAILY_LIMIT = 2000
# #
# The rate limiting API is in open beta.
# https://developers.cloudflare.com/workers/runtime-apis/bindings/rate-limit/
# #
[[env.production.unsafe.bindings]]
name = "favicon"
type = "ratelimit"
namespace_id = "1001"
simple = { limit = 30, period = 60 }
# #
# Environment - Development
# For dev environment, use '-e dev'
# #
[env.dev]
name = "favicon"
workers_dev = true
# #
# Environment - Development - Vars
# #
[env.dev.vars]
ENVIRONMENT = "dev"
THROTTLE_DELAY_MS = 500
THROTTLE_AGGRESSIVE = true
THROTTLE_AGGRESSIVE_PUNISH_MS = 5000
THROTTLE_DAILY_ENABLED = true
THROTTLE_DAILY_LIMIT = 2000
# #
# The rate limiting API is in open beta.
# https://developers.cloudflare.com/workers/runtime-apis/bindings/rate-limit/
# #
[[env.dev.unsafe.bindings]]
name = "favicon"
type = "ratelimit"
namespace_id = "1001"
simple = { limit = 30, period = 60 }
# #
# Logs
# https://developers.cloudflare.com/workers/observability/logs/
# #
[observability]
enabled = true