Advertisement
NginUS

server.json

Sep 24th, 2015
359
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.25 KB | None | 0 0
  1. {
  2. # network ports
  3. "listen" : [
  4. # binary protocol (default), port 8336
  5. { "port" : 8336 },
  6.  
  7. # HTTP JSON-RPC protocol, port 8337
  8. { "port" : 8337, "protocol" : "http-json" },
  9.  
  10. # HTTP JSON-RPC protocol, port 8339,
  11. # with trusted proxy appserver.example.com forwarding
  12. # requests to us
  13. { "port" : 8337, "protocol" : "http-json"},
  14. # "proxy" : "" },
  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" : "sqlite3",
  23. # "name" : "/tmp/data.sqlite",
  24. # "stmt.pwdb" :
  25. # "SELECT password FROM pool_worker WHERE username = ?"
  26.  
  27. # ... or ...
  28.  
  29. "engine" : "mysql",
  30.  
  31. # 'host' defaults to localhost, if not specified
  32. "host" : "localhost",
  33.  
  34. # 'port' uses proper default port for the DB engine,
  35. # if not specified
  36. "port" : 12121,
  37.  
  38. "name" : "xxxxxxxxxxxxxxxxxxxx",
  39. "username" : "xxxxxxxxxxxxxxxxxxxx",
  40. "password" : "xxxxxxxxxxxxxxxxxxxx",
  41.  
  42. "stmt.pwdb" :
  43. "SELECT password FROM pool_worker WHERE username = ?"
  44.  
  45. # ... or ...
  46.  
  47. # "engine" : "postgresql",
  48.  
  49. # "host" : "db.example.com",
  50.  
  51. # "port" : 12121,
  52.  
  53. # "name" : "mydatabasename",
  54. # "username" : "myuser",
  55. # "password" : "mypass",
  56.  
  57. # "stmt.pwdb" :
  58. # "SELECT password FROM pool_worker WHERE username = $1"
  59. },
  60.  
  61. # cache settings
  62. "memcached" : {
  63. "servers" : [
  64. { "host" : "127.0.0.1", "port" : 11211 }
  65. ]
  66. # },
  67.  
  68. "pid" : "/home/admin/apps/pushpool/pushpoold.pid",
  69.  
  70. # overrides local hostname detection
  71. "forcehost" : "localhost",
  72.  
  73. "log.requests" : "/home/admin/apps/pushpool/request.log",
  74. "log.shares" : "/home/admin/apps/pushpool/.shares.log",
  75.  
  76. # the server assumes longpolling (w/ SIGUSR1 called for each blk)
  77. "longpoll.disable" : false,
  78.  
  79. # length of time to cache username/password credentials, in seconds
  80. "auth.cred_cache.expire" : 75,
  81.  
  82. # RPC settings
  83. "rpc.url" : "http://127.0.0.1:8332/",
  84. "rpc.user" : "xxxxxxxxxxxxxxxxxxxx",
  85. "rpc.pass" : "xxxxxxxxxxxxxxxxxxxx",
  86.  
  87. # rewrite returned 'target' to difficulty-1?
  88. "rpc.target.rewrite" : true,
  89.  
  90. # how long before work expires?
  91. "work.expire" : 120,
  92.  
  93. # allow clients to update the ntime field of their work
  94. "roll.ntime.disable" : true
  95. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement