From 54935bf63830353c8954f7f6b9ed49628bc0109d Mon Sep 17 00:00:00 2001 From: satoshi Date: Mon, 13 Apr 2026 03:54:49 +0300 Subject: [PATCH] Add configurable stratum port (default 3333) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- Dockerfile | 2 +- docker_entrypoint.sh | 3 ++- scripts/procedures/getConfig.ts | 10 ++++++++++ 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 60faee6..8ba8c34 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,7 +11,7 @@ # WILL fail until the KamadoPool source repo is pushed to GitHub. ARG KAMADO_REPO=https://github.com/Relaxo143/KamadoPool.git -ARG KAMADO_SHA=REPLACE_ME_WITH_PUSHED_COMMIT_SHA +ARG KAMADO_SHA=0000000000000000000000000000000000000000 ARG ARCH # ---------- stage 1: fetch source ---------- diff --git a/docker_entrypoint.sh b/docker_entrypoint.sh index b28760a..620b6ef 100755 --- a/docker_entrypoint.sh +++ b/docker_entrypoint.sh @@ -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}" <