Add configurable stratum port (default 3333)

Exposes stratum-port in the StartOS config UI so users running
simpleproxy or another TCP forwarder can point Kamado at a
non-default port. Entrypoint substitutes the value into
ckpool.conf serverurl.

Also pins placeholder KAMADO_SHA in the Dockerfile — swap to a
real pushed commit before the first build.
This commit is contained in:
satoshi
2026-04-13 03:54:49 +03:00
parent 4064f9e56a
commit 54935bf638
3 changed files with 13 additions and 2 deletions
+2 -1
View File
@@ -40,6 +40,7 @@ BITCOIN_USER=$(q '.bitcoind.user')
BITCOIN_PASS=$(q '.bitcoind.password')
POOL_BTCADDRESS=$(q '.pool-address')
POOL_IDENTIFIER=$(q '.pool-identifier')
STRATUM_PORT=$(q '.stratum-port // 3333')
DROPIDLE=$(q '.dropidle // 0')
STARTDIFF=$(q '.startdiff // 16384')
MINDIFF=$(q '.mindiff // 1000')
@@ -59,7 +60,7 @@ cat > "${CKPOOL_CONF}" <<EOF
"btcaddress": "${POOL_BTCADDRESS}",
"btcsig": "${POOL_IDENTIFIER}",
"serverurl": [
"0.0.0.0:3333"
"0.0.0.0:${STRATUM_PORT}"
],
"mindiff": ${MINDIFF},
"startdiff": ${STARTDIFF},