https://github.com/Stratehm/stratum-proxyas example . here is some config file. but i think that you search for something like that.
{
"logDirectory" : "",
"logLevel" : "INFO",
"disableLogAppend": false,
"stratumListenPort" : 3333,
"stratumListenAddress" : "0.0.0.0",
"disableStratum": false,
"getworkListenPort" : 8332,
"getworkListenAddress" : "0.0.0.0",
"disableGetwork": false,
"apiListenPort" : 8888,
"apiListenAddress" : "0.0.0.0",
"disableApi": false,
"poolConnectionRetryDelay" : 5,
"poolReconnectStabilityPeriod" : 5,
"poolNoNotifyTimeout" : 240,
"rejectReconnectOnDifferentHost" : false,
"poolHashrateSamplingPeriod" : 600,
"userHashrateSamplingPeriod" : 600,
"connectionHashrateSamplingPeriod" : 600,
"isScrypt" : false,
"databaseDirectory": "",
"hashrateDatabaseSamplingPeriod": 60,
"hashrateDatabaseHistoryDepth": 7,
"noMidstate": false,
"apiLogLevel": "INFO",
"validateGetworkShares": false, // Validate the shares submitted by Getwork workers before submitting the shares to the pool. Only works for SHA256 and Scrypt.
"poolSwitchingStrategy": "priorityFailover",
"weightedRoundRobinRoundDuration": 60,
"apiUser": "",
"apiPassword": "",
"apiReadOnlyAccessEnabled": false, // If an apiUser is set and this option is true, the read-only API methods are publicly accessible. The displayed GUI will be read-only and login will be required to access to admin features (modify/create/delete pools, ban users...)
// The apiEnableSsl should be set to true or left commented if an apiUser is specified. If the apiEnableSsl option is not set, ssl is enabled when apiUser is set else it is disabled.
//"apiEnableSsl": false,
"logRealShareDifficulty": false, // Take care, it is CPU intensive and it works only for SHA256 and Scrypt coins.
"workerNumberLimit": 256, // Only 1, 256 and 65536 values are supported.
"ipVersion": "auto", // Valid values: auto, v4, v6. Force the use of the IP protocol version.
"suggestedPoolDifficulty": 0.01, // Suggest this difficulty to the pool. The pool may ignore the suggested difficulty. (if not compatible or for any other reasons)
"pools" : [ {
"name" : "Nicehash X11",
"host" : "stratum.nicehash.com:3336",
"user" : "19wv8FQKv3NkwTdzBCQn1AGsb9ghqBPWXi",
"password" : "d=0.02;p=0.24",
"enableExtranonceSubscribe" : true,
"appendWorkerNames" : false,
"workerNameSeparator" : ".",
"useWorkerPassword" : false,
"weight" : 9,
"isEnabled": true
}, {
"name" : "Wafflepool X11",
"host" : "eu.wafflepool.com:3331",
"user" : "19wv8FQKv3NkwTdzBCQn1AGsb9ghqBPWXi",
"password" : "d=0.008",
"enableExtranonceSubscribe" : false,
"appendWorkerNames" : true,
"workerNameSeparator" : "_",
"useWorkerPassword" : false,
"weight" : 1,
"isEnabled": true
} ]
}