-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathwrangler.toml
25 lines (21 loc) · 984 Bytes
/
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
name = "idempotent-proxy-cf-worker"
main = "./src/index.ts"
compatibility_date = "2024-04-03"
[dev]
port = 8080
# Variable bindings. These are arbitrary, plaintext strings (similar to environment variables)
# Note: Use secrets to store sensitive data.
# Docs: https://developers.cloudflare.com/workers/platform/environment-variables
[vars]
POLL_INTERVAL = 100 # in milliseconds
REQUEST_TIMEOUT = 20000 # in milliseconds
ALLOW_AGENTS = [] # Optional: List of allowed agents, ["agent1", "agent2"]
# Bind a Durable Object. Durable objects are a scale-to-zero compute primitive based on the actor model.
# Durable Objects can live for as long as needed. Use these when you need a long-running "server", such as in realtime apps.
# Docs: https://developers.cloudflare.com/workers/runtime-apis/durable-objects
[[durable_objects.bindings]]
name = "CACHER"
class_name = "Cacher"
[[migrations]]
tag = "v1" # Should be unique for each entry
new_classes = ["Cacher"]