Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Nyuu proper command line usage (saved in a tiny shell script file):
- ---------------------------------------------------------------------
- #!/bin/bash
- /usr/bin/nodejs ~/src/Nyuu-0.2.4/bin/nyuu --from "FROM-USERNAME <from@my.mail.com>" --connections 8 --minify --log-time --group-files \
- -h news.testnews.com -P 563 -S -u my_news_account -p my_news_password \
- --skip-errors post-timeout,check-timeout,check-missing --check-tries 4 --check-post-tries 3 --check-connections 3 \
- --check-delay 3s --subdirs keep --disk-req-size 28000K --post-queue-size 16 --request-retries 8 \
- -H "Organization=XXX" /home/username/UPLOAD_DIRECTORY --comment "my_title_for_posting_this" -M "x-generator=Nyuu" \
- -M "title=XXX_Something" \
- --groups alt.binaries.test -o my_nzb_filename.nzb
- ----------------------------------------------------------------------
- If you save this to a file take note: the "\" backslash _must_ be the last character in each line.
- No space after backslash allowed! Must be follwed by the Return char immidately.
- -----------------------------------------------------------------------
- Proper "Nyuu" config.js configuration for Gigabit-Speed servers:
- -----------------------------------------------------------------------
- /** Upload Server Options **/
- server: {
- // connection options - see the following pages for full documentation
- // non-SSL: https://nodejs.org/api/net.html#net_socket_connect_options_connectlistener
- // SSL: https://nodejs.org/api/tls.html#tls_tls_connect_options_callback
- connect: { // connection options
- host: 'news.your-news-server.com',
- port: null, // null => if server.secure, port=563, else, port=119
- // SSL options
- rejectUnauthorized: true,
- },
- secure: true, // set to true to use SSL
- user: 'my_usenet_username',
- password: 'my_password',
- // note that these times are specified in miliseconds
- timeout: 60000, // 60000ms = 1 minute
- connTimeout: 30000, // 30 seconds
- reconnectDelay: 5000, // 5 seconds
- connectRetries: 5,
- requestRetries: 5, // how many times to retry an interrupted request
- postRetries: 8, // how many times to retry if server returns 441 response to posted article
- connections: 8, // number of connections
- keepAlive: true, // always reconnect on error, even if not needed
- ignorePostTimeout: false, // skip past posting timeout errors, assuming post succeeded if no response received
- tcpKeepAlive: false, // false to disable, otherwise set a number for probe interval (in ms)
- },
- /** Post Check Options **/
- check: {
- // this 'server' block is identical to the 'server' block above
- // missing fields are simply copied from there
- server: {
- connect: {
- },
- connections: 3, // 1 is a good number, but if you're uploading fast enough that it becomes a bottleneck, increase it
- },
- delay: 5000, // (in ms) initial delay for performing check
- recheckDelay: 30000, // (in ms) delay retries by this amount of time; not used if tries<2
- tries: 7, // number of check attempts; should be 0 if not performing post checks
- group: '', // if set, will switch checking connections to this group;
- // some servers seem to want one when STATing posts, otherwise they fail to show them;
- // if set, should be a valid group you never post to, eg "bit.test"
- ulConnReuse: false, // use uploading connections for post checks;
- // only works if checking the same server as the one being uploaded to
- postRetries: 10, // maximum number of post retry attempts after a post check failure; set to 0 to never retry posting
- queueBuffer: 32000, // maximum number of posts in the post-check queue;
- // if this number is exceeded, uploading is paused until the queue is emptied below this size;
- // default is numConnections*8
- },
- ---------------------------------
- A high queue buffer value is beneficial for good upload speed.
- 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