Advertisement
Guest User

server.json

a guest
Jul 22nd, 2011
315
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.26 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" : 8344, "protocol" : "http-json", "proxy" : "192.
  14. 168.3.1" },
  15.  
  16. # binary protocol, localhost-only port 8338
  17. { "host" : "127.0.0.1", "port" : 8338, "protocol" : "binar
  18. y" }
  19. ],
  20.  
  21. # database settings
  22. "database" : {
  23. "engine" : "mysql",
  24. "host" : "localhost",
  25. "port" : 3306,
  26. "name" : "mydatabase.shares",
  27. "username" : "databaseuser",
  28. "password" : "databaseuserpassword",
  29. "sharelog" : true,
  30. "stmt.pwdb":"SELECT `password` FROM `mydatabase.pool_worke
  31. r` WHERE `username` = ?",
  32. "stmt.sharelog":"INSERT INTO shares (rem_host, username, o
  33. ur_result, upstream_result, reason, solution) VALUES (?, ?, ?, ?, ?, ?)"
  34.  
  35. },
  36.  
  37. # cache settings
  38. "memcached" : {
  39. "servers" : [
  40. { "host" : "127.0.0.1", "port" : 11211 }
  41. ]
  42. },
  43.  
  44. "pid" : "/tmp/pushpoold.pid",
  45.  
  46. # overrides local hostname detection
  47. "forcehost" : "localhost.localdomain",
  48.  
  49. "log.requests" : "/tmp/request.log",
  50. "log.shares" : "/tmp/shares.log",
  51.  
  52. # the server assumes longpolling (w/ SIGUSR1 called for each blk)
  53. "longpoll.disable" : false,
  54.  
  55. # length of time to cache username/password credentials, in second
  56. s
  57. "auth.cred_cache.expire" : 75,
  58.  
  59. # RPC settings | Notice how this ISN'T port number 8332 this is be
  60. cuase the same port number should not becuase inconjunction with the JSON
  61. RPC port other wise you'll get 500 errors
  62. "rpc.url" : "http://127.0.0.1:8333/",
  63. "rpc.user" : "test",
  64. "rpc.pass" : "x",
  65.  
  66. # rewrite returned 'target' to difficulty-1?
  67. "rpc.target.rewrite" : true
  68. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement