Skip to content

Instantly share code, notes, and snippets.

@DickyT
Last active January 4, 2018 03:26
Show Gist options
  • Save DickyT/5ee5884b486f127448dfeb1818cc31a9 to your computer and use it in GitHub Desktop.
Save DickyT/5ee5884b486f127448dfeb1818cc31a9 to your computer and use it in GitHub Desktop.
docker hub dickyt/coinhive-proxy-nodejs startup file template
const Proxy = require("coin-hive-stratum");
const proxy = new Proxy({
host: "POOL_ADDR",
port: POOL_PORT,
pass: "POOL_PASSWD",
ssl: false,
user: "POOL_USER",
address: "WALLET_ADDR",
dynamicPool: false,
maxMinersPerConnection: MAX_CONN_LOAD,
donations: [],
});
proxy.listen(SERVER_PORT);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment