diff --git a/pogolo/data/pogolo.toml b/pogolo/data/pogolo.toml new file mode 100755 index 0000000000..205c10d8d5 --- /dev/null +++ b/pogolo/data/pogolo.toml @@ -0,0 +1,21 @@ +[pogolo] +# optional, required from clients if set +# password = '' +# will be replaced by default tag if too long (about 86 chars) +# customize it! add your swarm stats, like +# '/pogolo on Umbrel - gamma x1 - decentralize or die/' +tag = '/pogolo on Umbrel - decentralize or die/' +# default on-chain address to mine to if not provided by client +# pool_address = '' +# minimum 0.16 +default_difficulty = 1024.0 +# how often to send new work to clients, in seconds +job_interval = 60 +# how often we want shares on average, in seconds +target_share_interval = 5 +# extranonce2 size in bytes, usually shouldnt be touched +# extranonce2_size = 4 +# ignore the client-suggested difficulty +# ignore_suggested_difficulty = false +# disable automatic difficulty adjustment +# disable_vardiff = false diff --git a/pogolo/docker-compose.yml b/pogolo/docker-compose.yml new file mode 100644 index 0000000000..b915e2edff --- /dev/null +++ b/pogolo/docker-compose.yml @@ -0,0 +1,43 @@ +version: "3.7" + +services: + app_proxy: + environment: + APP_HOST: pogolo_gotty_1 + APP_PORT: 5663 + + gotty: + image: sorenisanerd/gotty:v1.6.0@sha256:23b4669973e96d8d7d37b3bfd9e6566bdd701aa1a56eee2dc0e0362bd927ed88 + restart: on-failure + user: "1000:1000" + stop_grace_period: 1m + command: ["gotty", "--port", "5663", "--width", "80", "--title-format", "pogolo (on Umbrel)", "sh", "-c", "tail -n 10000 -f /data/pogolo.log"] + volumes: + - ${APP_DATA_DIR}/data:/data + + pogolo: + image: 0xf0xx0/pogolo:v1.x@sha256:f692a1fb4bb338a42089bbafbb1f22304a989590548da21b3fb5bf16ad590093 + restart: on-failure + user: "1000:1000" + stop_grace_period: 30s + labels: + - logopo + ports: + - 5661:5661 # stratum + - 5662:5662 # api + volumes: + - "${APP_DATA_DIR}/data:/data" + environment: + POGOLO_HOST: "0.0.0.0" + POGOLO_BACKEND_HOST: "$APP_BITCOIN_NODE_IP:$APP_BITCOIN_RPC_PORT" + POGOLO_BACKEND_RPCAUTH: "$APP_BITCOIN_RPC_USER:$APP_BITCOIN_RPC_PASS" + # colorful logs + FORCE_COLOR: 1 + command: ["/pogolo", "--conf", "/data/pogolo.toml", "--logfile", "/data/pogolo.log"] + + widget-server: + image: 0xf0xx0/umbrel-pogolo-widget:v1.0.0@sha256:4355198345deb2b6c7f6f38ad9ef5e91e3fbdc5e13d5465446fe89c968ecf852 + restart: on-failure + user: "1000:1000" + environment: + POGOLO_API_URL: "http://pogolo_pogolo_1:5662" diff --git a/pogolo/umbrel-app.yml b/pogolo/umbrel-app.yml new file mode 100644 index 0000000000..63c8cdb5f4 --- /dev/null +++ b/pogolo/umbrel-app.yml @@ -0,0 +1,46 @@ +manifestVersion: 1.1 +name: pogolo +id: pogolo +version: "1.1.1" +category: bitcoin +dependencies: + - bitcoin +tagline: Local Go-based solo pool +description: >- + solo db-less bitcoin-only mining pool, + meant for lan swarms, not the internet; + + start it, point your miners to it, and watch the logs roll by + + think of this as public-pool but minimal and for self-sovereign nerds +releaseNotes: "" + +developer: 0xf0xx0 +website: https://github.com/0xf0xx0/pogolo +repo: https://github.com/0xf0xx0/pogolo +support: https://github.com/0xf0xx0/pogolo/discussions +port: 5663 +gallery: [] +path: "" +submitter: 0xf0xx0 +submission: https://github.com/getumbrel/umbrel-apps/pull/4622 +widgets: + - id: "pogolo-stats" + type: "four-stats" + refresh: "30s" + endpoint: "widget-server:3000/widgets/pool" + link: "" + example: + type: "four-stats" + link: "" + items: + - title: "Hashrate" + text: "6.9" + subtext: "Th/s" + - title: "Gophers" + text: "420,420" + - title: "Height" + text: "8,888,888" + - title: "Best Share" + text: "210" + subtext: "Giga"