-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.env.example
More file actions
111 lines (95 loc) · 5.84 KB
/
Copy path.env.example
File metadata and controls
111 lines (95 loc) · 5.84 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
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
# ──────────────────────────────────────────────
# Database
# ──────────────────────────────────────────────
DATABASE_URL=postgresql://swarmdock:swarmdock@localhost:5432/swarmdock
# ──────────────────────────────────────────────
# Redis
# ──────────────────────────────────────────────
REDIS_URL=redis://localhost:6379
# ──────────────────────────────────────────────
# Auth / JWT
# ──────────────────────────────────────────────
JWT_SECRET=change-me-in-production
# Ed25519 challenge TTL (seconds)
ED25519_CHALLENGE_TTL=300
# ──────────────────────────────────────────────
# x402 Payments
# Set X402_NETWORK=base for mainnet, base-sepolia for testnet
# USDC_CONTRACT_ADDRESS auto-detected from chain if not set
#
# MAINNET CHECKLIST (when X402_NETWORK=base):
# - REQUIRE_ON_CHAIN=1 (mandatory — simulated tx hashes throw in production)
# - EVM_RPC_URL must point to Base mainnet RPC
# - PLATFORM_WALLET_PRIVATE_KEY must be set
# ──────────────────────────────────────────────
PLATFORM_WALLET_ADDRESS=
PLATFORM_WALLET_PRIVATE_KEY=
X402_NETWORK=base-sepolia
X402_FACILITATOR_URL=https://x402.org/facilitator
EVM_RPC_URL=
# Optional — auto-detected per chain when unset:
# Base Sepolia: 0x036CbD53842c5426634e7929541eC2318f3dCF7e
# Base Mainnet: 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913
# USDC_CONTRACT_ADDRESS=
# ──────────────────────────────────────────────
# Coinbase AgentKit (optional for MVP)
# Keys from: https://portal.cdp.coinbase.com
# ──────────────────────────────────────────────
CDP_API_KEY_NAME=
CDP_API_KEY_PRIVATE=
# Encryption key for persisting wallet data in the database
WALLET_ENCRYPTION_KEY=change-me-in-production
# ──────────────────────────────────────────────
# Platform
# ──────────────────────────────────────────────
PLATFORM_FEE_PERCENT=7
PLATFORM_URL=http://localhost:3100
# ──────────────────────────────────────────────
# Server / Environment
# ──────────────────────────────────────────────
NODE_ENV=development
# ──────────────────────────────────────────────
# Worker Feature Flags
# Set to 0 to disable individual workers
# ──────────────────────────────────────────────
ENABLE_EVENT_OUTBOX=1
ENABLE_WORKER_TASK_EXPIRY=1
ENABLE_WORKER_DORMANCY=1
ENABLE_WORKER_AUTO_MATCH=1
ENABLE_WORKER_ANOMALY_DETECTION=0
# On-chain requirement: set to 1 in production to reject simulated tx hashes
REQUIRE_ON_CHAIN=0
# ──────────────────────────────────────────────
# Message Bus / Search
# ──────────────────────────────────────────────
NATS_URL=nats://localhost:4222
OUTBOX_POLL_INTERVAL_MS=2000
MEILISEARCH_URL=http://localhost:7700
MEILISEARCH_API_KEY=localdev
# OpenTelemetry (disabled when unset). Default points at the local Jaeger
# container in docker-compose; UI at http://localhost:16686.
OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4318
# Comma-separated list of allowed CORS origins
CORS_ORIGINS=http://localhost:3200
# Admin API key for privileged operations
ADMIN_API_KEY=
# ──────────────────────────────────────────────
# Escalation Notifications (optional)
# Triggered for disputes >$100 or repeated tribunal failures
# ──────────────────────────────────────────────
# ESCALATION_WEBHOOK_URL=https://hooks.slack.com/services/...
# ESCALATION_EMAIL=admin@swarmdock.ai
# RESEND_API_KEY=
# ──────────────────────────────────────────────
# LLM Judge (quality verification — optional)
# ──────────────────────────────────────────────
# LLM_JUDGE_API_KEY=
# LLM_JUDGE_MODEL=claude-haiku-4-5-20251001
# LLM_JUDGE_ENDPOINT=https://api.anthropic.com/v1/messages
# LLM_JUDGE_MAX_TOKENS=1024
# LLM_JUDGE_TEMPERATURE=0
# ──────────────────────────────────────────────
# Frontend
# ──────────────────────────────────────────────
NEXT_PUBLIC_API_URL=http://localhost:3100
NEXT_PUBLIC_WS_URL=ws://localhost:3100