Advertisement
Guest User

server.json

a guest
Aug 3rd, 2011
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.74 KB | None | 0 0
  1. {
  2. # network ports
  3. "listen" : [
  4. # binary protocol (default), port 8342
  5. { "port" : 8342 },
  6.  
  7. # HTTP JSON-RPC protocol, port 8341
  8. { "port" : 8341, "protocol" : "http-json" },
  9.  
  10. # HTTP JSON-RPC protocol, port 8344,
  11. # with trusted proxy appserver.example.com forwarding
  12. # requests to us
  13. { "port" : 8332, "protocol" : "http-json",
  14. "proxy" : "127.0.0.1" },
  15.  
  16. # binary protocol, localhost-only port 8338
  17. { "host" : "127.0.0.1", "port" : 8338, "protocol" : "binary" }
  18. ],
  19.  
  20. # database settings
  21. "database" : {
  22. "engine" : "mysql",
  23. "host" : "localhost",
  24. "port" : 3306,
  25. "name" : "name",
  26. "username" : "user",
  27. "password" : "password",
  28. "sharelog" : true,
  29. "stmt.pwdb":"SELECT `password` FROM `pool_worker` WHERE `username` = ?",
  30. "stmt.sharelog":"INSERT INTO shares (rem_host, username, our_result, upstream_result, reason, solution) VALUES (?, ?, ?, ?, ?, ?)"
  31.  
  32. },
  33.  
  34. # cache settings
  35. "memcached" : {
  36. "servers" : [
  37. { "host" : "127.0.0.1", "port" : 11211 }
  38. ]
  39. },
  40.  
  41. "pid" : "/tmp/pushpoold.pid",
  42.  
  43. # overrides local hostname detection
  44. "forcehost" : "localhost.localdomain",
  45.  
  46. "log.requests" : "/tmp/request.log",
  47. "log.shares" : "/tmp/shares.log",
  48.  
  49. # the server assumes longpolling (w/ SIGUSR1 called for each blk)
  50. "longpoll.disable" : false,
  51.  
  52. # length of time to cache username/password credentials, in seconds
  53. "auth.cred_cache.expire" : 75,
  54.  
  55. # RPC settings | Notice how this ISN'T port number 8332 this is becuase the same port number should not becuase inconjunction with the JSON RPC port other wise you'll get 500 errors
  56. "rpc.url" : "http://127.0.0.1:8333/",
  57. "rpc.user" : "user",
  58. "rpc.pass" : "pass",
  59.  
  60. # rewrite returned 'target' to difficulty-1?
  61. "rpc.target.rewrite" : true
  62. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement