Skip to content

config.json

raistlinthewiz edited this page Sep 25, 2014 · 23 revisions

config.json contains the generic configuration for the server. You have to first copy config-example.json as config.json and start editing it.

Stack Configuration

Stack configuration hosts the settings for your pool stack.

    "stack": {
        "name": "CoiniumServ.com",
        "nodes": [
            {
                "location": "eu",
                "address": "127.0.0.1",
                "default": true
            }
        ]
    }
  • name: Name of the pool stack, that will be rendered over various places in your frontend.

nodes

Contains the list of your stratum server nodes over different geographic locations.

  • location: Set here the geographic location of your server. Make sure to use the two-letter country code as web front-end will be rendering a flag icon using it.
  • address: ip/domain of the server hosting the node.
  • default: set this true if you want to set this node as the default one in the stack.

Statistics Configuration

Contains the statistics configuration settings which are used by the web front-end.

"statistics": {
        "updateInterval": 60,
        "hashrateWindow": 300
    }
  • updateInterval: Update interval in seconds for updating settings.
  • hashrateWindow: How many seconds worth of shares should be included in to calculate hashrate data.

Website Configuration

Settings for embedded web-server and front-end

    "website": {
        "enabled": true,
        "bind": "",
        "port": 80,
        "template": "default",
        "social": {
            "rss": "http: //bit.ly/1qheogE",
            "twitter": "https: //twitter.com/coinium",
            "facebook": "https: //www.facebook.com/pages/Coiniumorg/639179226128343",
            "googleplus": "https: //plus.google.com/+CoiniumOrgNetwork/about",
            "youtube": "http: //www.youtube.com/user/CoiniumNetwork/"
        },
        "backend": {
            "metrics": {
                "enabled": false
            }
        }
    }
  • enabled: Is the embedded web-server enabled?
  • bind: Interface that embedded web-server will bind. Leave this empty to let it bind on all available interfaces.