forked from taikoxyz/tack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
48 lines (41 loc) · 1.7 KB
/
Copy path.env.example
File metadata and controls
48 lines (41 loc) · 1.7 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
# Server
PORT=3000
# IPFS / data
IPFS_API_URL=http://ipfs:5001
# Optional replica Kubo RPC URLs (comma-separated). When set, pin/unpin calls are
# mirrored best-effort to each replica after the primary pin succeeds.
PIN_REPLICA_IPFS_API_URLS=
# Optional public delegate URLs matching the replica list above 1:1.
# These are returned in PinStatus.delegates alongside DELEGATE_URL.
PIN_REPLICA_DELEGATE_URLS=
IPFS_TIMEOUT_MS=30000
DATABASE_PATH=./data/tack.db
DELEGATE_URL=http://localhost:8080/ipfs
# Networking / security
# When false, rate limiting ignores forwarded headers and uses socket remote address.
# Set true only when running behind a trusted reverse proxy that sets x-forwarded-for/x-real-ip.
TRUST_PROXY=false
# Optional secret for signed wallet bearer tokens on owner pin endpoints.
# Set this in production to enable `Authorization: Bearer <token>` auth for /pins owner operations.
WALLET_AUTH_TOKEN_SECRET=change-me
# Upload and gateway limits
UPLOAD_MAX_SIZE_BYTES=104857600
GATEWAY_MAX_CONTENT_SIZE_BYTES=52428800
GATEWAY_CACHE_MAX_SIZE_BYTES=104857600
GATEWAY_CACHE_CONTROL_MAX_AGE_SECONDS=31536000
RATE_LIMIT_REQUESTS_PER_MINUTE=120
# x402 payments
# In production, startup validation requires X402_ENABLED=true.
X402_ENABLED=false
X402_FACILITATOR_URL=https://facilitator.taiko.xyz
X402_NETWORK=eip155:167000
# Settlement wallet (receiver)
# Placeholder values below are for local dev only; production startup rejects placeholders.
X402_PAY_TO=0x0000000000000000000000000000000000000001
# Asset config (Taiko USDC)
X402_USDC_ASSET_ADDRESS=0x0000000000000000000000000000000000000001
X402_USDC_ASSET_DECIMALS=6
# Pricing for paid endpoints
X402_BASE_PRICE_USD=0.001
X402_PRICE_PER_MB_USD=0.001
X402_MAX_PRICE_USD=0.01