This is what I put in my stratum-proxy-nicehash.conf file. Also I would get nothing but rejects if I used
http://my server ip address:8332 in my antminer pool address on the web UI even though the pool status is live, so I had to make "disableStratum": false, and put stratum+tcp://my server ip address:3333 to get the miner to start hashing. I pointed several miners to the proxy and it made my difficulty go up on westhash.com so I made a separate folder for each miner and ran separate instances of the stratum proxy for each miner to keep the difficulty to 512 for each miner. kinda defeats the purpose of pointing all your miners to a single server proxy and putting "d=256" in the password on the conf file was ignored by westhash.com, so that didn't work to keep difficulty low. All you have to do is in each folder, change the last digit of the port address on "stratumListenPort, getworkListenPort, "apiListenPort. Each folder should also have its own conf file and bat file with java -jar stratum-proxy.jar -f stratum-proxy-nicehash.conf to start each instance of the proxy.
{
"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",
"validateSha26GetworkShares": true,
"poolSwitchingStrategy": "priorityFailover",
"weightedRoundRobinRoundDuration": 60,
"apiUser": "",
"apiPassword": "",
// 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,
"pools" : [ {
"name" : "Westhash Sha256",
"host" : "stratum.westhash.com:3334",
"user" : "You Bitcoin Address.worker name",
"password" : "x",
"enableExtranonceSubscribe" : true
},
{
"name" : "Nicehash Sha256",
"host" : "stratum.nicehash.com:3334",
"user" : "You Bitcoin Address.worker name",
"password" : "x",
"enableExtranonceSubscribe" : true
}
]
}