-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy path.env.example.compose
More file actions
66 lines (61 loc) · 2.17 KB
/
Copy path.env.example.compose
File metadata and controls
66 lines (61 loc) · 2.17 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
# Fields to start Mina daemon (Required)
MINA=minaprotocol/mina-daemon:3.3.1-7b34378-bullseye-mainnet
PEER_LIST_URL=https://bootnodes.minaprotocol.com/networks/mainnet.txt
MINA_LIBP2P_PASS=passlib
KEYPATH=/root/keys/libp2p-keys
EXTRA_FLAGS="--libp2p-keypair ${KEYPATH}"
LOG_LEVEL=Info
FILE_LOG_LEVEL=Debug
VERBOSE=true
# Fields for Archive DB (Required)
ARCHIVE=minaprotocol/mina-archive:3.3.1-7b34378-bullseye-mainnet
# Fields for Postgres (Required)
POSTGRES=postgres:13.3
PGUSER=postgres
PGPASSWORD=password
PGDATABASE=archive
PGURI=postgres://postgres:5432/archive
PG_CONN=postgres://${PGUSER}:${PGPASSWORD}@postgres:5432/${PGDATABASE}
# Connection-pool and query-timeout limits (optional; conservative defaults shown)
PG_MAX_CONNECTIONS=10
PG_IDLE_TIMEOUT=30
PG_CONNECT_TIMEOUT=30
PG_STATEMENT_TIMEOUT=15000
PG_DUMP="archive.sql"
PGDATA=/var/lib/postgresql/data
PGPORT=5432 # Local port for postgres - it will always be 5432 inside the container
# Fields for Jaeger (Required)
JAEGER=jaegertracing/all-in-one:latest
# Fields for App (Required)
PORT=8080
SHUTDOWN_TIMEOUT_MS=20000
LOG_LEVEL="info"
# Wide-open CORS for local dev convenience. In production leave unset
# (same-origin only) or set an explicit allowlist instead of "*".
CORS_ORIGIN="*"
READINESS_PING_TIMEOUT_MS=2000
# Per-client-IP request rate limit (optional). RATE_LIMIT_MAX=0 disables it.
RATE_LIMIT_MAX=600
RATE_LIMIT_WINDOW_MS=60000
# Trusted proxy hops in front of the API. REQUIRED when RATE_LIMIT_MAX > 0;
# the limiter stays disabled until this is set, because no default is safe.
# 0 = directly exposed (ignore X-Forwarded-For, key on the socket address).
# Behind a GCP external ALB use 2 (client IP + forwarding-rule IP), plus 1 per
# additional in-cluster proxy hop.
TRUST_PROXY=0
# GraphQL query-cost limits (optional; conservative defaults shown)
GRAPHQL_MAX_DEPTH=12
GRAPHQL_MAX_ALIASES=15
GRAPHQL_MAX_TOKENS=1000
GRAPHQL_MAX_COST=5000
ENABLE_GRAPHIQL="true"
ENABLE_INTROSPECTION="true"
ENABLE_LOGGING="true"
ENABLE_METRICS="false"
ENABLE_JAEGER="true"
JAEGER_SERVICE_NAME="archive-api"
JAEGER_ENDPOINT=http://jaeger:14268/api/traces
COLLECTOR_ZIPKIN_HTTP_PORT=9411
JAEGER_FRONTEND=16686
JAEGER_LOG_PORT=14268
BLOCK_RANGE_SIZE=10000