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:
+1
-1
@@ -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 ----------
|
||||
|
||||
@@ -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},
|
||||
|
||||
@@ -81,6 +81,16 @@ export const getConfig: T.ExpectedExports.getConfig = compat.getConfig({
|
||||
"masked": false,
|
||||
"copyable": false,
|
||||
},
|
||||
"stratum-port": {
|
||||
"type": "number",
|
||||
"name": "Stratum Port",
|
||||
"description":
|
||||
"TCP port the stratum server listens on inside the container. Defaults to 3333. Change this if you are running simpleproxy (or another TCP forwarder) and want Kamado to listen on a different port — useful when another service on the same host already uses 3333.",
|
||||
"nullable": false,
|
||||
"default": 3333,
|
||||
"range": "[1,65535]",
|
||||
"integral": true,
|
||||
},
|
||||
"startdiff": {
|
||||
"type": "number",
|
||||
"name": "Starting Difficulty",
|
||||
|
||||
Reference in New Issue
Block a user