Then let us start with configuring.
{
# network ports
"listen" : [
# binary protocol (default), port 8336
{ "port" : 8336 },
# HTTP JSON-RPC protocol, port 8337
{ "port" : 8337, "protocol" : "http-json" },
# HTTP JSON-RPC protocol, port 8339,
# with trusted proxy appserver.example.com forwarding
# requests to us
{ "port" : 8337, "protocol" : "http-json",
"proxy" : "appserver.example.com" },
# binary protocol, localhost-only port 8338
{ "host" : "127.0.0.1", "port" : 8338, "protocol" : "binary" }
],
# database settings
"database" : {
"engine" : "sqlite3",
"name" : "/tmp/data.sqlite",
"stmt.pwdb" :
"SELECT password FROM pool_worker WHERE username = ?"
# ... or ...
"engine" : "mysql",
# 'host' defaults to localhost, if not specified
"host" : "mysql.example.com",
# 'port' uses proper default port for the DB engine,
# if not specified
"port" : 12121,
"name" : "mydatabasename",
"username" : "myuser",
"password" : "mypass",
"stmt.pwdb" :
"SELECT password FROM pool_worker WHERE username = ?"
# ... or ...
"engine" : "postgresql",
"host" : "db.example.com",
"port" : 12121,
"name" : "mydatabasename",
"username" : "myuser",
"password" : "mypass",
"stmt.pwdb" :
"SELECT password FROM pool_worker WHERE username = $1"
},
# cache settings
"memcached" : {
"servers" : [
{ "host" : "127.0.0.1", "port" : 11211 }
]
},
"pid" : "/tmp/pushpoold.pid",
# overrides local hostname detection
"forcehost" : "localhost.localdomain",
"log.requests" : "/tmp/request.log",
"log.shares" : "/tmp/shares.log",
# the server assumes longpolling (w/ SIGUSR1 called for each blk)
"longpoll.disable" : false,
# length of time to cache username/password credentials, in seconds
"auth.cred_cache.expire" : 75,
# RPC settings
"rpc.url" : "
http://127.0.0.1:8332/",
"rpc.user" : "myusername",
"rpc.pass" : "mypassword",
# rewrite returned 'target' to difficulty-1?
"rpc.target.rewrite" : true
}
Any idea what to write here? Lots of stuff and i am still banging my head on the listening part
EDIT: If someone has a working config file, do share.