-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
61 lines (49 loc) · 1.74 KB
/
Copy path.env.example
File metadata and controls
61 lines (49 loc) · 1.74 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
49
50
51
52
53
54
55
56
57
58
59
60
61
# ADMP Server Configuration
# Server
PORT=8080
NODE_ENV=development
# CORS
CORS_ORIGIN=*
# Security
API_KEY_REQUIRED=false
MASTER_API_KEY=
# Heartbeat & Expiry
HEARTBEAT_INTERVAL_MS=60000
HEARTBEAT_TIMEOUT_MS=300000
MESSAGE_TTL_SEC=86400
CLEANUP_INTERVAL_MS=60000
# Limits
MAX_MESSAGE_SIZE_KB=256
MAX_MESSAGES_PER_AGENT=1000
# Storage Backend
# "memory" — in-process Map, no persistence (default for development)
# Custom backends: implement the interface in src/storage/memory.js
STORAGE_BACKEND=memory
# Registration Policy
# "open" — agents auto-approved on registration
# "approval_required" — agents start pending, require admin approval
REGISTRATION_POLICY=open
# DID:web Federation (optional)
# Comma-separated domains whose DID:web agents are auto-approved
# DID_WEB_ALLOWED_DOMAINS=example.com,partner.io
# Email (Resend + Cloudflare)
# Outbound email via Resend (https://resend.com)
RESEND_API_KEY=
# Secret for verifying Resend webhook delivery status events (Svix-signed)
RESEND_WEBHOOK_SECRET=
# Inbound email via Cloudflare Email Routing → Worker → ADMP
# Shared secret between the Cloudflare Worker and this server
INBOUND_EMAIL_SECRET=
# Domain used to construct agent email addresses
INBOUND_EMAIL_DOMAIN=agentdispatch.io
# Cloudflare API — used by scripts/provision-resend-dns.js and src/lib/cloudflare.js
# Token requires DNS:Edit (and Email Routing:Edit for inbound setup)
CLOUDFLARE_API_TOKEN=
# Zone ID for the sending/inbound domain (optional — looked up automatically if omitted)
CLOUDFLARE_ZONE_ID=
# Resend DNS values — copy exact values from Resend dashboard → Domains → DNS Records
# Only needed when running scripts/provision-resend-dns.js
RESEND_DKIM_CONTENT=
RESEND_MX_CONTENT=
RESEND_SPF_CONTENT=
RESEND_MX_PRIORITY=10