mirror of
https://github.com/benjamin-wilson/public-pool.git
synced 2026-09-29 09:05:06 -07:00
57 lines
1.2 KiB
Bash
57 lines
1.2 KiB
Bash
# bitcoin node running in your private network 192.168.1.0/24
|
|
BITCOIN_RPC_URL=http://192.168.1.100
|
|
|
|
# bitcoin node running undockered on the same PC
|
|
# needs to add rpcallowip=172.16.0.0/12 to your bitcoin.conf
|
|
#BITCOIN_RPC_URL=http://host.docker.internal
|
|
|
|
BITCOIN_RPC_USER=
|
|
BITCOIN_RPC_PASSWORD=
|
|
BITCOIN_RPC_PORT=8332
|
|
BITCOIN_RPC_TIMEOUT=10000
|
|
|
|
# Enable in bitcoin.conf with
|
|
# zmqpubrawblock=tcp://*:3000
|
|
# BITCOIN_ZMQ_HOST="tcp://192.168.1.100:3000"
|
|
|
|
API_PORT=3334
|
|
|
|
# Plain TCP Stratum ports accept both SV1 JSON-RPC and SV2 Noise/binary traffic.
|
|
STRATUM_PORTS=3333,3332,3331,3330
|
|
|
|
# Optional additional SV2-only mining ports. Usually unnecessary when STRATUM_PORTS are exposed.
|
|
#STRATUM_V2_PORTS=
|
|
#SV2_START_DIFFICULTY=100000
|
|
#SV2_TARGET_SHARES_PER_MINUTE=2
|
|
#SV2_DIFFICULTY_CHECK_INTERVAL_MS=60000
|
|
#SV2_AUTHORITY_PRIVKEY=
|
|
|
|
STRATUM_SECURE=true
|
|
SECURE_STRATUM_PORTS=4333,4332,4331,4330
|
|
STRATUM_MAX_CONNECTIONS_PER_LISTENER=10000
|
|
STRATUM_TLS_HANDSHAKE_TIMEOUT_MS=10000
|
|
|
|
#optional telegram bot
|
|
#TELEGRAM_BOT_TOKEN=
|
|
|
|
#optional discord bot
|
|
#DISCORD_BOT_CLIENTID=
|
|
#DISCORD_BOT_GUILD_ID=
|
|
#DISCORD_BOT_CHANNEL_ID=
|
|
|
|
#optional
|
|
DEV_FEE_ADDRESS=
|
|
# mainnet | testnet
|
|
NETWORK=mainnet
|
|
|
|
API_SECURE=false
|
|
|
|
#postgresql
|
|
DB_HOST=
|
|
DB_PORT=
|
|
DB_USERNAME=
|
|
DB_PASSWORD=
|
|
DB_DATABASE=
|
|
|
|
PRODUCTION=false
|