Files
claudeandClaude Opus 5.5 946256a3dd Publish sanitized P2Pool hashrate stats
Enable P2Pool's --data-api/--local-api and add a small stdlib-only sidecar
that copies an allowlist of numeric fields (node/sidechain hashrate,
connected miners, shares, network difficulty) to /p2pool/stats.json. Worker
IPs and wallet fragments in local/stratum are never served.

An Ingress adds that single path to the website host (www.eom.dev by
default), so the homepage can read it same-origin and reuse its TLS cert.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018STDcc5BaYxPMNA9S8Wycs
2026-11-08 02:37:26 +00:00

30 lines
1.2 KiB
YAML

#SPDX-License-Identifier: MIT-0
---
# defaults file for ansible-role-monero
# P2Pool sidechain: main, mini or nano. Pick the one your total hashrate can
# find shares on at least every few hours, or payouts become rare lumps:
# share difficulty (Nov 2026) is ~4.2G on main, ~320M on mini, ~160M on nano.
# A home setup of a few kH/s belongs on nano. P2P stays on port 37889 on
# every chain, so the LoadBalancer and any router forwarding are unchanged.
monero_p2pool_chain: nano
# Extra P2Pool peers, as host:port. Peers only help on their own chain.
monero_p2pool_addpeers: []
monerod_rpc_secret_name: monerod-rpc
# Public P2Pool stats: node and sidechain hashrate, connected miner count,
# shares and network difficulty, served at https://<host>/p2pool/stats.json.
# Worker IPs and wallet fragments are never included. The path is added to
# an existing website host so it shares that host's TLS certificate; set the
# host to "" to keep the stats cluster-internal (service p2pool-stats:8080).
monero_p2pool_stats_host: www.eom.dev
monero_p2pool_stats_ingress_class: nginx
monero_p2pool_stats_image: python:3.13-alpine
# Required (Vault).
monerod_user: ""
monerod_password: ""
monero_p2pool_wallet_address: ""