Advertisement
Guest User

nyuu proper command line and config

a guest
Oct 22nd, 2016
493
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.24 KB | None | 0 0
  1. Nyuu proper command line usage (saved in a tiny shell script file):
  2. ---------------------------------------------------------------------
  3. #!/bin/bash
  4. /usr/bin/nodejs ~/src/Nyuu-0.2.4/bin/nyuu --from "FROM-USERNAME <from@my.mail.com>" --connections 8 --minify --log-time --group-files \
  5. -h news.testnews.com -P 563 -S -u my_news_account -p my_news_password \
  6. --skip-errors post-timeout,check-timeout,check-missing --check-tries 4 --check-post-tries 3 --check-connections 3 \
  7. --check-delay 3s --subdirs keep --disk-req-size 28000K --post-queue-size 16 --request-retries 8 \
  8. -H "Organization=XXX" /home/username/UPLOAD_DIRECTORY --comment "my_title_for_posting_this" -M "x-generator=Nyuu" \
  9. -M "title=XXX_Something" \
  10. --groups alt.binaries.test -o my_nzb_filename.nzb
  11.  
  12. ----------------------------------------------------------------------
  13.  
  14. If you save this to a file take note: the "\" backslash _must_ be the last character in each line.
  15. No space after backslash allowed! Must be follwed by the Return char immidately.
  16.  
  17. -----------------------------------------------------------------------
  18.  
  19. Proper "Nyuu" config.js configuration for Gigabit-Speed servers:
  20.  
  21. -----------------------------------------------------------------------
  22.  
  23. /** Upload Server Options **/
  24. server: {
  25. // connection options - see the following pages for full documentation
  26. // non-SSL: https://nodejs.org/api/net.html#net_socket_connect_options_connectlistener
  27. // SSL: https://nodejs.org/api/tls.html#tls_tls_connect_options_callback
  28. connect: { // connection options
  29. host: 'news.your-news-server.com',
  30. port: null, // null => if server.secure, port=563, else, port=119
  31.  
  32. // SSL options
  33. rejectUnauthorized: true,
  34. },
  35. secure: true, // set to true to use SSL
  36. user: 'my_usenet_username',
  37. password: 'my_password',
  38. // note that these times are specified in miliseconds
  39. timeout: 60000, // 60000ms = 1 minute
  40. connTimeout: 30000, // 30 seconds
  41. reconnectDelay: 5000, // 5 seconds
  42. connectRetries: 5,
  43. requestRetries: 5, // how many times to retry an interrupted request
  44. postRetries: 8, // how many times to retry if server returns 441 response to posted article
  45. connections: 8, // number of connections
  46. keepAlive: true, // always reconnect on error, even if not needed
  47. ignorePostTimeout: false, // skip past posting timeout errors, assuming post succeeded if no response received
  48. tcpKeepAlive: false, // false to disable, otherwise set a number for probe interval (in ms)
  49. },
  50.  
  51.  
  52. /** Post Check Options **/
  53. check: {
  54. // this 'server' block is identical to the 'server' block above
  55. // missing fields are simply copied from there
  56. server: {
  57. connect: {
  58. },
  59. connections: 3, // 1 is a good number, but if you're uploading fast enough that it becomes a bottleneck, increase it
  60. },
  61. delay: 5000, // (in ms) initial delay for performing check
  62. recheckDelay: 30000, // (in ms) delay retries by this amount of time; not used if tries<2
  63. tries: 7, // number of check attempts; should be 0 if not performing post checks
  64. group: '', // if set, will switch checking connections to this group;
  65. // some servers seem to want one when STATing posts, otherwise they fail to show them;
  66. // if set, should be a valid group you never post to, eg "bit.test"
  67. ulConnReuse: false, // use uploading connections for post checks;
  68. // only works if checking the same server as the one being uploaded to
  69. postRetries: 10, // maximum number of post retry attempts after a post check failure; set to 0 to never retry posting
  70. queueBuffer: 32000, // maximum number of posts in the post-check queue;
  71. // if this number is exceeded, uploading is paused until the queue is emptied below this size;
  72. // default is numConnections*8
  73. },
  74.  
  75. ---------------------------------
  76.  
  77. A high queue buffer value is beneficial for good upload speed.
  78. Below the end of this section of the configuration, I did not do any further changes in the config.js file.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement