-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathwrangler.jsonc
More file actions
48 lines (43 loc) · 1.31 KB
/
wrangler.jsonc
File metadata and controls
48 lines (43 loc) · 1.31 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
{
"$schema": "https://raw.githubusercontent.com/cloudflare/workers-sdk/main/packages/wrangler/config-schema.json",
"name": "cloudflare-email-agent",
"main": "src/index.ts",
"compatibility_date": "2026-04-01",
"compatibility_flags": ["nodejs_compat"],
"observability": { "enabled": true },
// Restrict outbound to shaheed.fazal@ only.
// To add more recipients, use "allowed_destination_addresses" instead.
"send_email": [
{
"name": "SEND_EMAIL",
"destination_address": "shaheed.fazal@mylocalchemist.co.uk"
}
],
// KV for email storage and thread caching.
"kv_namespaces": [
{
"binding": "THREADS",
"id": "dd43807b089b4a00bfe4f92745d4b106"
},
{
"binding": "EMAILS",
"id": "5cc5c9a2a9504609ad4f031fa289412d"
}
],
// R2 for attachment storage.
"r2_buckets": [
{
"bucket_name": "email-attachments",
"binding": "ATTACHMENTS"
}
],
"vars": {
"AGENT_ADDRESS": "shaheed.fazal@mylocalchemist.co.uk",
"FROM_ADDRESS": "mohamed.ayub@mylocalchemist.uk",
"FROM_NAME": "Mohamed Ayub"
}
// Secrets (set via `wrangler secret put <NAME>`):
// WEBHOOK_URL - where inbound email JSON is POSTed
// WEBHOOK_TOKEN - bearer token sent TO the webhook
// SEND_TOKEN - bearer token required ON /send requests
}