-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
41 lines (33 loc) · 1.54 KB
/
.env.example
File metadata and controls
41 lines (33 loc) · 1.54 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
# Server
PORT=3000
HOST=0.0.0.0
MCP_PORT=3001
MCP_HOST=0.0.0.0
# Request limits
BODY_LIMIT=1048576 # Max request body size in bytes (default: 1 MB)
MAX_PARAM_LENGTH=200 # Max URL parameter length
# Rate limiting
RATE_LIMIT_MAX=100 # Max requests per window (global)
RATE_LIMIT_WINDOW_MS=60000 # Rate limit window in ms (default: 1 minute)
RELOAD_RATE_LIMIT_MAX=5 # Max /reload requests per window
SEARCH_RATE_LIMIT_MAX=30 # Max /search requests per window
# RPC health check
RPC_CHECK_TIMEOUT_MS=8000 # Timeout per RPC call
RPC_CHECK_CONCURRENCY=8 # Parallel RPC checks
MAX_ENDPOINTS_PER_CHAIN=5 # Max endpoints tested per chain
RPC_MONITOR_LOOP=false # Set to true to loop monitoring continuously
# Search
MAX_SEARCH_QUERY_LENGTH=200
# Data sources (override to use mirrors or local files)
# DATA_SOURCE_THE_GRAPH=https://raw.githubusercontent.com/Johnaverse/networks-registry/refs/heads/main/public/TheGraphNetworksRegistry.json
# DATA_SOURCE_CHAINLIST=https://chainlist.org/rpcs.json
# DATA_SOURCE_CHAINS=https://chainid.network/chains.json
# DATA_SOURCE_SLIP44=https://raw.githubusercontent.com/satoshilabs/slips/master/slip-0044.md
# Disk cache (stale-first startup)
DATA_CACHE_ENABLED=true
DATA_CACHE_FILE=.cache/chains-api-data.json
# CORS
CORS_ORIGIN=* # Allowed origins (* for all, or comma-separated list)
# Proxy (optional)
# PROXY_URL=http://proxy.example.com:8080 # HTTP/HTTPS proxy URL (leave empty to disable)
# PROXY_URL=http://user:pass@proxy.example.com:8080 # Proxy with authentication