-
Notifications
You must be signed in to change notification settings - Fork 2
/
.env
49 lines (42 loc) · 1.65 KB
/
.env
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
# Application settings
START_TIMEOUT=20s # Start application timeout duration
STOP_TIMEOUT=20s # Stop application timeout duration
CHAIN_PREFIX=cosmos # Prefix of indexing chain
# Server settings
SERVER_PORT=2112
METRICS_ENABLED=true
# Client settings
RPC_URL=http://127.0.0.1:26657 # RPC API
GRPC_URL=http://127.0.0.1:8090 # GRPC API
GRPC_SECURE_CONNECTION=false # GRPC secure connection
GRPC_TIMEOUT=15s # GRPC requests timeout
RPC_TIMEOUT=15s # RPC requests timeout
# Broker settings
BROKER_SERVER=localhost:9092 # Broker address
PARTITIONS_COUNT=1
BROKER_ENABLED=true # Publish messages to broker
BATCH_PRODUCER=false # Enable batch producer (increase performance but experimental feature)
# Worker settings
WORKERS_COUNT=8 # Count of block processing processes
SUBSCRIBE_NEW_BLOCKS=true # Subscribe to get new blocks by websocket
PROCESS_ERROR_BLOCKS=true # Process error blocks again
START_HEIGHT=13071519 # Start block height
STOP_HEIGHT=0 # Stop block height
PROCESS_ERROR_BLOCKS_INTERVAL=1m # Interval to reprocess error blocks again
PROCESS_GENESIS=true # Parse 0 height of genesis
MAX_MESSAGE_MAX_BYTES=5242880 # Max message size in bytes (5MB)
# Mongo settings
MONGO_CRAWLER_URI=mongodb://localhost:27018/spacebox # Database connection url
MONGO_USER=spacebox_user # Database user
MONGO_PASSWORD=spacebox_password # Database password
MAX_POOL_SIZE=100
MAX_CONNECTING=100
# Debug
LOG_LEVEL=info # Level of logging
RECOVERY_MODE=false # Detect panic without stop application. It will decrease index performance!!!
# Health checker
HEALTHCHECK_ENABLED=true
HEALTHCHECK_FATAL_ON_CHECK=true
HEALTHCHECK_MAX_LAST_BLOCK_LAG=1m
HEALTHCHECK_INTERVAL=10m
HEALTHCHECK_START_DELAY=1m