forked from Sikbik/flux-blockchain-explorer
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.env.production.example
More file actions
69 lines (57 loc) · 2.45 KB
/
Copy path.env.production.example
File metadata and controls
69 lines (57 loc) · 2.45 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
67
68
69
# Production Environment Variables for FluxIndexer Stack
# Copy this file to .env.production and customize the values
#
# IMPORTANT: Replace all "CHANGE_THIS_*" placeholders with secure passwords
# =============================================================================
# ClickHouse Database
# =============================================================================
CLICKHOUSE_USER=fluxindexer
CLICKHOUSE_PASSWORD=CHANGE_THIS_CH_PASSWORD
# ClickHouse Bootstrap (optional - speeds up initial database sync)
# Set to download pre-indexed database on first start
# Leave empty to index from genesis block
# Example: CH_BOOTSTRAP_URL=https://your-cdn.com/clickhouse-bootstrap.tar.gz
CH_BOOTSTRAP_URL=
# =============================================================================
# Flux Daemon RPC
# =============================================================================
FLUX_RPC_USER=fluxrpc
FLUX_RPC_PASSWORD=CHANGE_THIS_RPC_PASSWORD
# =============================================================================
# Indexer Configuration
# =============================================================================
# ClickHouse connection (for indexer container)
CH_HOST=clickhouse
CH_PORT=8123
CH_DATABASE=default
CH_USER=fluxindexer
CH_PASSWORD=CHANGE_THIS_CH_PASSWORD
CH_REQUEST_TIMEOUT=300000
CH_MAX_CONNECTIONS=25
# Indexer settings
INDEXER_BATCH_SIZE=5000
INDEXER_POLLING_INTERVAL=1000
INDEXER_START_HEIGHT=-1
# Backfill any detected block gaps before continuing
BACKFILL_GAPS=true
# Node.js memory limit (prevent OOM at high block heights)
NODE_OPTIONS=--max-old-space-size=6144
# API Server
API_PORT=42067
API_HOST=0.0.0.0
# Logging
LOG_LEVEL=info
# =============================================================================
# Explorer Frontend
# =============================================================================
# Client-side API URL: AUTO = use /api/indexer proxy route (recommended for FluxOS)
NEXT_PUBLIC_API_URL=AUTO
# Server-side API URL (for Next.js API routes inside container)
SERVER_API_URL=http://indexer:42067
# =============================================================================
# Bootstrap Configuration (OPTIONAL - speeds up initial sync)
# =============================================================================
# Flux Blockchain Data Bootstrap (blocks/chainstate folders - .tar.gz format)
# Leave empty to sync from genesis block
# Example: BOOTSTRAP_URL=https://your-cdn.com/flux-daemon-bootstrap.tar.gz
BOOTSTRAP_URL=