Repository navigation
Expand file tree
/
Copy pathenv.example
More file actions
88 lines (75 loc) · 3.35 KB
/
Copy pathenv.example
File metadata and controls
88 lines (75 loc) · 3.35 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# HashScope Configuration
# Copy this file to .env and configure for your setup
# ==============================================================================
# POOL CONFIGURATION
# ==============================================================================
# Pool to connect to (both MITM and agents will use this)
POOL_HOST=stratum+tcp://your-pool.example.com
POOL_PORT=3333
# ==============================================================================
# HASHSPLIT (Exergy same-pool share-band fee routing)
# ==============================================================================
# One upstream pool connection. Each share is assigned to customer or fee worker
# by a 16-bit hash of share fields (DATUM-style). Lab 50/50 or product 5% fee.
HASHSPLIT_ENABLED=false
# Target percent of shares on the fee worker (50 = equal bands)
HASHSPLIT_FEE_PERCENT=50
# Full worker names (optional customer = pass-through miner authorize)
# Lab example: …proxy_test_A / …proxy_test_B
HASHSPLIT_CUSTOMER_USER=
HASHSPLIT_CUSTOMER_PASSWORD=x
# Fee worker (or leave empty: *.proxy_test → *.proxy_test_B, *_A → *_B)
HASHSPLIT_FEE_USER=
HASHSPLIT_FEE_PASSWORD=x
# Unused in share-band mode (single pool). Kept for env compatibility.
# HASHSPLIT_FEE_POOL_HOST=
# HASHSPLIT_FEE_POOL_PORT=
# HASHSPLIT_SWITCH_SECONDS=30
# ==============================================================================
# ITERATION 2: NOSTR CONFIGURATION
# ==============================================================================
# Unique run ID - use the same RUN_ID for MITM and all agents to enable communication
# IMPORTANT: .env files don't execute shell commands, so use one of these approaches:
# 1. Set a static value: RUN_ID=my-test-run-123
# 2. Generate once: RUN_ID=test-run-1736283820
# 3. Pass as env var: RUN_ID="test-run-$(date +%s)" docker compose up
# Leave empty to auto-generate (but won't match between restarts)
RUN_ID=
# Enable Nostr functionality (set to true to enable Iteration 2 features)
NOSTR_ENABLED=false
# Nostr relay URL (required if NOSTR_ENABLED=true)
# Popular public relays:
# - wss://relay.damus.io
# - wss://relay.nostr.band
# - wss://nos.lol
# For production, consider self-hosting
NOSTR_RELAY_URL=
# Nostr private key for MITM (hex-encoded)
# Auto-generated if not provided - check logs for the generated key
# Save the generated key here to persist across restarts
NOSTR_SK=
# ==============================================================================
# AGENT CONFIGURATION
# ==============================================================================
# Worker name for pool authentication
# Note: Agents automatically append .hashscope_agent{random5digits} to create
# unique worker names (e.g., myworker.hashscope_agent12345)
WORKER_NAME=hashscope_agent
# Worker password (if required by pool)
WORKER_PASSWORD=x
# Telemetry publishing interval in seconds
TELEMETRY_INTERVAL_SEC=5
# ==============================================================================
# ADVANCED SETTINGS
# ==============================================================================
# Capture limits
CAPTURE_MAX_MESSAGES=50000
CAPTURE_MAX_PER_SESSION=10000
# API and proxy ports (usually don't need to change these)
LISTEN_HOST=0.0.0.0
LISTEN_PORT=3333
API_HOST=0.0.0.0
API_PORT=8000
# Nostr event kinds (custom kinds for HashScope)
NOSTR_KIND_SHARE=30080
NOSTR_KIND_TELEMETRY=30079