-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.env.example
More file actions
26 lines (20 loc) · 869 Bytes
/
.env.example
File metadata and controls
26 lines (20 loc) · 869 Bytes
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
# Network the indexer points at — "mainnet" (chain 7119) or "testnet" (chain 7120).
INDEXER_NETWORK=mainnet
# Postgres connection string used by both the worker and the api.
INDEXER_DATABASE_URL=postgres://indexer:indexer@localhost:5432/sentrix_indexer
# Optional: override the public RPC endpoints (default: rpc.sentrixchain.com /
# testnet-rpc.sentrixchain.com). Useful when running the indexer next to a
# local validator over loopback.
# INDEXER_RPC_HTTP_URL=http://127.0.0.1:8545
# INDEXER_RPC_WS_URL=ws://127.0.0.1:8545/ws
# How many blocks to stay behind the tip during backfill so we never race
# the BFT finalizer writing a block whose justification we'd partial-read.
INDEXER_SAFE_LAG=5
# Logging.
LOG_LEVEL=info
# API server.
API_PORT=8081
API_HOST=0.0.0.0
API_RATE_LIMIT=120
# Health endpoint exposed by the indexer worker.
INDEXER_HEALTH_PORT=8082