|
|
|
@@ -1,5 +1,6 @@
|
|
|
|
# P2Pool Configuration File Example
|
|
|
|
# P2Pool Configuration File Example
|
|
|
|
# Copy this file to /var/lib/p2pool/params.conf and edit as needed
|
|
|
|
# Copy this file to /var/lib/p2pool/params.conf and edit as needed
|
|
|
|
|
|
|
|
# Compatible with: p2pool v4.14+
|
|
|
|
|
|
|
|
|
|
|
|
# =============================================================================
|
|
|
|
# =============================================================================
|
|
|
|
# Monero Node Connection (REQUIRED)
|
|
|
|
# Monero Node Connection (REQUIRED)
|
|
|
|
@@ -11,6 +12,7 @@ host = 127.0.0.1
|
|
|
|
rpc-port = 18081
|
|
|
|
rpc-port = 18081
|
|
|
|
|
|
|
|
|
|
|
|
# Monero ZMQ port (required for optimal performance)
|
|
|
|
# Monero ZMQ port (required for optimal performance)
|
|
|
|
|
|
|
|
# v4.14+: ZMQ connections now support IPv6 addresses
|
|
|
|
zmq-port = 18083
|
|
|
|
zmq-port = 18083
|
|
|
|
|
|
|
|
|
|
|
|
# =============================================================================
|
|
|
|
# =============================================================================
|
|
|
|
@@ -29,6 +31,16 @@ p2p = 0.0.0.0:37889
|
|
|
|
# Add known peer nodes (optional)
|
|
|
|
# Add known peer nodes (optional)
|
|
|
|
# addpeers = node1.p2pool.io:37889,node2.p2pool.io:37889
|
|
|
|
# addpeers = node1.p2pool.io:37889,node2.p2pool.io:37889
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# HAProxy PROXY Protocol v2 for P2P connections (v4.14+)
|
|
|
|
|
|
|
|
# Enable ONLY if p2pool's P2P port is behind a proxy that sends PROXY Protocol
|
|
|
|
|
|
|
|
# v2 headers (e.g. HAProxy with "send-proxy-v2" directive).
|
|
|
|
|
|
|
|
# When enabled, the real client IP is extracted from the PROXY header and used
|
|
|
|
|
|
|
|
# for peer management, ban checks and logging — instead of the proxy's IP.
|
|
|
|
|
|
|
|
# P2P traffic is typically low-volume and usually does NOT need load balancing;
|
|
|
|
|
|
|
|
# leave commented out unless you have a specific reason to proxy P2P.
|
|
|
|
|
|
|
|
# Accepted values: none (default), v2
|
|
|
|
|
|
|
|
# p2p-proxy-protocol = none
|
|
|
|
|
|
|
|
|
|
|
|
# =============================================================================
|
|
|
|
# =============================================================================
|
|
|
|
# API Settings
|
|
|
|
# API Settings
|
|
|
|
# =============================================================================
|
|
|
|
# =============================================================================
|
|
|
|
@@ -50,15 +62,30 @@ local-api = true
|
|
|
|
# =============================================================================
|
|
|
|
# =============================================================================
|
|
|
|
# Enable stratum server for miners to connect
|
|
|
|
# Enable stratum server for miners to connect
|
|
|
|
# Format: <bind_ip>:<port>
|
|
|
|
# Format: <bind_ip>:<port>
|
|
|
|
# Uncomment and configure if you want to connect mining software
|
|
|
|
|
|
|
|
# stratum = 0.0.0.0:3333
|
|
|
|
# stratum = 0.0.0.0:3333
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# HAProxy PROXY Protocol v2 for Stratum connections (v4.14+)
|
|
|
|
|
|
|
|
# Enable ONLY if p2pool's Stratum port is behind a proxy that sends PROXY
|
|
|
|
|
|
|
|
# Protocol v2 headers (e.g. HAProxy with "send-proxy-v2" directive).
|
|
|
|
|
|
|
|
# When enabled, miners' real IP addresses are correctly extracted and shown
|
|
|
|
|
|
|
|
# in the `workers` command output, and per-IP ban/rate-limiting works properly.
|
|
|
|
|
|
|
|
# This is an open standard also supported by nginx, Traefik, AWS ELB, etc.;
|
|
|
|
|
|
|
|
# it is NOT tied to HAProxy specifically.
|
|
|
|
|
|
|
|
#
|
|
|
|
|
|
|
|
# ⚠️ TLV extensions (send-proxy-v2-ssl, send-proxy-v2-ssl-cn,
|
|
|
|
|
|
|
|
# unique-id-format, crc32c) are silently ignored — only the address block
|
|
|
|
|
|
|
|
# is read. Do NOT use exact addr_len checks in custom builds (spec §2.2
|
|
|
|
|
|
|
|
# allows senders to append TLV vectors, increasing addr_len beyond the
|
|
|
|
|
|
|
|
# base 12 / 36 bytes).
|
|
|
|
|
|
|
|
#
|
|
|
|
|
|
|
|
# Accepted values: none (default), v2
|
|
|
|
|
|
|
|
# stratum-proxy-protocol = none
|
|
|
|
|
|
|
|
|
|
|
|
# =============================================================================
|
|
|
|
# =============================================================================
|
|
|
|
# Merge Mining (Optional)
|
|
|
|
# Merge Mining (Optional)
|
|
|
|
# =============================================================================
|
|
|
|
# =============================================================================
|
|
|
|
# Enable Tari merge mining
|
|
|
|
# Enable Tari merge mining
|
|
|
|
# Format: tari://<tari_node_ip>:<port> <tari_wallet_address>
|
|
|
|
# Format: tari://<tari_node_ip>:<port> <tari_wallet_address>
|
|
|
|
# Uncomment and configure if you want to merge mine Tari
|
|
|
|
|
|
|
|
# merge-mine = tari://127.0.0.1:18142 YOUR_TARI_WALLET_ADDRESS
|
|
|
|
# merge-mine = tari://127.0.0.1:18142 YOUR_TARI_WALLET_ADDRESS
|
|
|
|
|
|
|
|
|
|
|
|
# =============================================================================
|
|
|
|
# =============================================================================
|
|
|
|
@@ -73,7 +100,6 @@ loglevel = 3
|
|
|
|
# =============================================================================
|
|
|
|
# =============================================================================
|
|
|
|
# Performance Tuning (Advanced)
|
|
|
|
# Performance Tuning (Advanced)
|
|
|
|
# =============================================================================
|
|
|
|
# =============================================================================
|
|
|
|
# Number of light cache blocks to keep in RAM
|
|
|
|
|
|
|
|
# in-peers = 10
|
|
|
|
# in-peers = 10
|
|
|
|
# out-peers = 10
|
|
|
|
# out-peers = 10
|
|
|
|
|
|
|
|
|
|
|
|
@@ -82,3 +108,13 @@ loglevel = 3
|
|
|
|
# =============================================================================
|
|
|
|
# =============================================================================
|
|
|
|
# SOCKS5 proxy for outgoing connections
|
|
|
|
# SOCKS5 proxy for outgoing connections
|
|
|
|
# socks5 = 127.0.0.1:9050
|
|
|
|
# socks5 = 127.0.0.1:9050
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# SOCKS5 proxy type (v4.14+)
|
|
|
|
|
|
|
|
# Controls how p2pool treats the SOCKS5 proxy configured above.
|
|
|
|
|
|
|
|
# Accepted values:
|
|
|
|
|
|
|
|
# auto — auto-detect whether it is a plain proxy or Tor (default)
|
|
|
|
|
|
|
|
# plain — treat as a standard SOCKS5 proxy (no Tor-specific behavior)
|
|
|
|
|
|
|
|
# tor — treat as a Tor SOCKS5 proxy (enables onion routing optimizations,
|
|
|
|
|
|
|
|
# e.g. .onion peer resolution, correct onion connection counters)
|
|
|
|
|
|
|
|
# Only meaningful when `socks5` is set; ignored otherwise.
|
|
|
|
|
|
|
|
# socks5-proxy-type = auto
|