-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.env.example
More file actions
52 lines (45 loc) · 1.6 KB
/
.env.example
File metadata and controls
52 lines (45 loc) · 1.6 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
# BlobKit Configuration
# Copy this file to .env and fill in your values
# SDK Configuration
BLOBKIT_RPC_URL=https://eth-mainnet.g.alchemy.com/v2/YOUR_API_KEY
BLOBKIT_CHAIN_ID=1
BLOBKIT_PROXY_URL=https://proxy.blobkit.org
BLOBKIT_ESCROW_1=0x... # Mainnet escrow contract
BLOBKIT_ESCROW_11155111=0x... # Sepolia escrow contract
BLOBKIT_ESCROW_17000=0x... # Holesky escrow contract
BLOBKIT_LOG_LEVEL=info
# Proxy Server Configuration
RPC_URL=https://eth-mainnet.g.alchemy.com/v2/YOUR_API_KEY
ETHEREUM_RPC_URL=https://eth-mainnet.g.alchemy.com/v2/YOUR_API_KEY # Fallback
CHAIN_ID=1
ESCROW_CONTRACT=0x... # Escrow contract address
PRIVATE_KEY=0x... # Proxy operator private key (keep secure!)
REQUEST_SIGNING_SECRET=your-secret-minimum-32-characters
# Proxy Server Options
PORT=3000
HOST=0.0.0.0
PROXY_FEE_PERCENT=0 # Default 0% (public good)
MAX_BLOB_SIZE=131072 # 128KB
RATE_LIMIT_REQUESTS=10
RATE_LIMIT_WINDOW=60000 # milliseconds
JOB_TIMEOUT=300000 # 5 minutes in milliseconds
LOG_LEVEL=info
CORS_ORIGIN=* # Configure for production
# Optional Services
REDIS_URL=redis://localhost:6379 # For persistent job queue
# Key Management Services (Production)
AWS_KMS_KEY_ID=arn:aws:kms:region:account:key/id
AWS_REGION=us-east-1
GCP_KMS_KEY_ID=projects/PROJECT_ID/locations/LOCATION/keyRings/KEY_RING/cryptoKeys/KEY_NAME
GCP_PROJECT_ID=your-project-id
HSM_KEY_ID=hsm-key-id
HSM_PIN=hsm-pin
# Development Overrides
OVERRIDE_BLOBKIT_ENVIRONMENT=node # Force environment detection
NODE_ENV=development
# Deployment Detection (Auto-set by platforms)
VERCEL=1
NETLIFY=1
AWS_LAMBDA_FUNCTION_NAME=function-name
FUNCTIONS_WORKER=1
CF_PAGES=1