-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathsimplepool-dashboard.service
More file actions
64 lines (61 loc) · 2.97 KB
/
Copy pathsimplepool-dashboard.service
File metadata and controls
64 lines (61 loc) · 2.97 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
[Unit]
Description=simplepool dashboard (operator web UI)
Documentation=https://github.com/rsantacroce/simplepool
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
User=@USER@
Group=@USER@
WorkingDirectory=@ROOT@/dashboard
Environment=PORT=8081
Environment=PROXY_DB_PATH=@ROOT@/data/shares.db
# Rendered on the public "Connect a miner" card. Set to the actual
# host miners should point their ASIC at. Leave unset to show
# 'stratum+tcp://<pool-host>:3334' as a placeholder.
# Environment=PUBLIC_STRATUM_URL=stratum+tcp://pool.example.com:3334
# --- PPS admin panel — /admin route ---
# When ADMIN_USER + ADMIN_PASSWORD are both set, /admin serves the pool
# operator view (reserve balance, ledger totals, per-worker owed,
# in-flight payouts). Without both, /admin returns 503 (fail-closed).
Environment=THUNDER_RPC_URL=http://127.0.0.1:6009
# --- Write-action wiring (POST buttons on /admin) ---
# Payout worker admin HTTP endpoint (see simplepool-payout.service).
Environment=PAYOUT_ADMIN_URL=http://127.0.0.1:9080
# bip300301_enforcer address — the deposit action POSTs JSON to its
# ConnectRPC endpoint for CreateDepositTransaction.
Environment=ENFORCER_GRPC_ADDR=127.0.0.1:50051
Environment=THUNDER_SIDECHAIN_ID=9
# --- Build provenance — /api/versions ---
# Which commit of each component is running. Defaults assume the four
# checkouts are siblings of this repo; override per component if not.
# thunder and bitcoind don't embed a commit in their binaries — run
# scripts/record-build.sh after building them and these paths become
# unnecessary. Set VERSIONS_USE_CHECKOUT=0 to report only what the
# binaries and their manifests say, with no source tree consulted.
# Environment=ENFORCER_REPO_DIR=/home/forknet/forknet-software/bip300301_enforcer
# Environment=ENFORCER_BIN=/home/forknet/forknet-software/bip300301_enforcer/target/release/bip300301_enforcer
# Environment=THUNDER_REPO_DIR=/home/forknet/forknet-software/thunder-rust
# Environment=THUNDER_BIN=/home/forknet/forknet-software/thunder-rust/target/release/thunder_app
# Environment=BITCOIN_REPO_DIR=/home/forknet/forknet-software/bitcoin
# Environment=BITCOIND_BIN=/home/forknet/forknet-software/bitcoin/build/bin/bitcoind
# Environment=POOL_THUNDER_RESERVE_ADDRESS=<paste from proxy.conf>
# Environment=ADMIN_USER=admin
# Environment=ADMIN_PASSWORD=<generate with `openssl rand -base64 21`>
# The PPS rate is deliberately NOT configured here. The dashboard reads it
# from the pool_meta table, which the proxy writes on every template change,
# so the audit can never disagree with the process that did the crediting.
ExecStart=/usr/bin/node @ROOT@/dashboard/server.js
Restart=on-failure
RestartSec=3
StandardOutput=journal
StandardError=journal
NoNewPrivileges=true
PrivateTmp=true
ProtectSystem=full
ProtectHome=read-only
# Dashboard writes to the deposits table when the operator submits a
# deposit via /admin/action/deposit — the DB dir must be writable.
ReadWritePaths=@ROOT@/data
[Install]
WantedBy=multi-user.target