Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- # 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" : "" },
- # 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" : "localhost",
- # 'port' uses proper default port for the DB engine,
- # if not specified
- "port" : 12121,
- "name" : "xxxxxxxxxxxxxxxxxxxx",
- "username" : "xxxxxxxxxxxxxxxxxxxx",
- "password" : "xxxxxxxxxxxxxxxxxxxx",
- "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" : "/home/admin/apps/pushpool/pushpoold.pid",
- # overrides local hostname detection
- "forcehost" : "localhost",
- "log.requests" : "/home/admin/apps/pushpool/request.log",
- "log.shares" : "/home/admin/apps/pushpool/.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" : "xxxxxxxxxxxxxxxxxxxx",
- "rpc.pass" : "xxxxxxxxxxxxxxxxxxxx",
- # rewrite returned 'target' to difficulty-1?
- "rpc.target.rewrite" : true,
- # how long before work expires?
- "work.expire" : 120,
- # allow clients to update the ntime field of their work
- "roll.ntime.disable" : true
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement