-
Notifications
You must be signed in to change notification settings - Fork 36
/
ngPost.conf
258 lines (192 loc) · 9.94 KB
/
ngPost.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
# ngPost configuration file
#
#
## Lang for the app. Currently supported: EN, FR, ES, DE, NL, PT, ZH
lang = EN
## use Proxy (only Socks5 type!)
#PROXY_SOCKS5 = user:[email protected]:5555
## destination folder for all your nzb
## if you don't put anything, the nzb will be generated in the folder of ngPost on Windows and in /tmp on Linux
## this will be overwritten if you use the option -o with the full path of the nzb
nzbPath = /tmp
#nzbPath = C:\ngPost\tmp
## Shutdown command to switch off the computer when ngPost is done with all its queued posting
## this should mainly used with the auto posting
## you could use whatever script instead (like to send a mail...)
#SHUTDOWN_CMD = shutdown /s /f /t 0 (Windows)
#SHUTDOWN_CMD = sudo -n /sbin/poweroff (Linux, make sure poweroff has sudo rights without any password or change the command)
#SHUTDOWN_CMD = sudo -n shutdown -h now (MacOS, same make sure you've sudo rights)
## upload the nzb to a specific URL
## only http, https or ftp (neither ftps or sftp are supported)
#NZB_UPLOAD_URL = ftp://user:pass@url_or_ip:21
## execute a command or script at the end of each post (see examples)
## you can use several post commands by defining several NZB_POST_CMD
## here is the list of the available placehoders
## __nzbPath__ : full path of the written nzb file
## __nzbName__ : name of the nzb without the extension (original source name)
## __rarName__ : name of the archive files (in case of obfuscation)
## __rarPass__ : archive password
## __sizeInByte__ : size of the post (before yEnc encoding)
## __groups__ : list of groups (coma separated)
## __nbFiles__ : number of files in the post
## __nbArticles__ : number of Articles
## __nbArticlesFailed__ : number of Articles that failed to be posted
#
#NZB_POST_CMD = scp "__nzbPath__" myBox.com:~/nzbs/
#NZB_POST_CMD = zip "__nzbPath__.zip" "__nzbPath__"
#NZB_POST_CMD = ~/scripts/postNZB.sh "__nzbPath__" "__groups__" __rarName__ __rarPass__ __sizeInByte__ __nbFiles__ __nbArticles__ __nbArticlesFailed__
#NZB_POST_CMD = mysql -h localhost -D myDB -u myUser -pmyPass-e "INSERT INTO POST (release, rarName, rarPass, size) VALUES('__nzbName__', '__rarName__', '__rarPass__', '__sizeInByte__')"
#NZB_POST_CMD = cmd.exe /C move "__nzbPath__" "C:\ngPost\nzb\__nzbName__{{__rarPass__}}.nzb"
#NZB_POST_CMD = curl -X POST -F "file=@__nzbPath__" -F "api=12345" -F "cat=45" -F "private=no" https://usenet.com/post-api
## nzb files are normally all created in nzbPath
## but using this option, the nzb of each monitoring folder will be stored in their own folder (created in nzbPath)
#MONITOR_NZB_FOLDERS = true
## for monitoring, extension file filter for new incoming files (coma separated, no dot)
#MONITOR_EXTENSIONS = mkv,mp4,avi,zip,tar,gz,iso
## for monitoring, ignore new incoming folders
#MONITOR_IGNORE_DIR = true
## for monitoring, delay to check the size of an incoming file/folder to make sure it is fully arrived before posting it
## must be between 1sec and 120sec (otherwise default: 1sec)
MONITOR_SEC_DELAY_SCAN = 1
## Default folder to open to select files from the HMI
inputDir = /tmp
## History posting file
## each succesful post will append a line with the date, the file name, the archive name, the password...
POST_HISTORY = /nzb/ngPost_history.csv
## Character used to separate fields in the history posting file
#FIELD_SEPARATOR = ;
GROUPS = alt.binaries.test,alt.binaries.misc
## If you give several Groups (comma separated) you've 3 policy when posting:
## ALL : everything is posted on ALL the Groups
## EACH_POST : each Post will be posted on a random Group from the list
## EACH_FILE : each File will be posted on a random Group from the list (only with Article's obfuscation)
GROUP_POLICY = EACH_POST
## uncomment the next line if you want a fixed uploader email (in the nzb and in the header of each articles)
## if you let it commented, we'll generate ONE random email for all the posts of the session
#FROM = [email protected]
## Generate new random poster for each post (--auto or --monitor)
## if this option is set the FROM email just above will be ignored
GEN_FROM = true
## uncomment the next line to limit the number of threads, (by default it'll use the number of cores)
## all the connections are spread equally on those posting threads
#thread = 1
## How to display progress in command line: NONE, BAR, FILES
DISP_PROGRESS = BAR
#DISP_PROGRESS = FILES
## suffix of the msg_id for all the articles (cf nzb file)
#msg_id = ngPost
## article size (default 700k)
article_size = 716800
## number of retry to post an Article in case of failure (probably due to an already existing msg-id)
retry = 5
## uncomment the following line to obfuscate the subjects of each Article
## /!\ CAREFUL you won't find your post if you lose the nzb file /!\
#obfuscate = article
## remove accents and special characters from the nzb file names
NZB_RM_ACCENTS = true
## close Quick Post Tabs when posted successfully (for the GUI)
#AUTO_CLOSE_TABS = true
## Time to wait (seconds) before trying to resume a Post automatically in case of loss of Network (min: 30)
RESUME_WAIT = 30
## By default, ngPost tries to resume a Post if the network is down.
## it won't stop trying until the network is back and the post is finished properly
## you can disable this feature and thus stop a post when you loose the network
#NO_RESUME_AUTO = true
## if there is no activity on a connection it will be closed and restarted
## The duration is in second, default: 30, min: 5
SOCK_TIMEOUT = 30
## when several posts are queued, prepare the packing of the next post while uploading the current one
PREPARE_PACKING = true
## For GUI ONLY, save the logs in a file (to debug potential crashes)
## ~/ngPost.log on Linux and MacOS, in the executable folder for Windows
## The log is overwritten each time ngPost is launched
## => after a crash, please SAVE the log before relaunching ngPost
LOG_IN_FILE = true
##############################################################
## Compression and par2 section ##
##############################################################
## Shortcut for automatic packing for both GUI and CMD using --pack
## coma separated list using the keywords COMPRESS, GEN_NAME, GEN_PASS and GEN_PAR2
## For Auto posting and Monitoring if you don't use COMPRESS you need GEN_PA2
#PACK = COMPRESS, GEN_NAME, GEN_PASS, GEN_PAR2
#PACK = GEN_PAR2
## use the same Password for all your Posts using compression
#RAR_PASS = myPassword
## temporary folder where the compressed files and par2 will be stored
## so we can post directly a compressed (obfuscated or not) archive of the selected files
## /!\ The directory MUST HAVE WRITE PERMISSION /!\
## this is set for Linux environment, Windows users MUST change it
TMP_DIR = /tmp
#TMP_DIR = C:\ngPost\tmp
## temporary folder with size constraint, typically a tmpfs partition
## the size of a post multiply by TMP_RAM_RATIO must available on the disk
## otherwise ngPost will use TMP_DIR (with no check)
## (uncomment and define TMP_RAM to activate the feature, make sure the path is writable)
#TMP_RAM = /mnt/ngPost_tmpfs
## Ratio used on the source files size to compensate the par2 generation
## min is 10% to be sure (so 1.1), max 2.0
TMP_RAM_RATIO = 1.1
## RAR absolute file path (external application)
## /!\ The file MUST EXIST and BE EXECUTABLE /!\
## this is set for Linux environment, Windows users MUST change it
RAR_PATH = /usr/bin/rar
#RAR_PATH = C:\Program Files\WinRAR\Rar.exe
#RAR_PATH = /usr/bin/7z
#RAR_PATH = C:\Program Files\7-Zip\7z.exe
## RAR EXTRA options (the first 'a' and '-idp' will be added automatically)
## -hp will be added if you use a password with --gen_pass, --rar_pass or using the HMI
## -v42m will be added with --rar_size or using the HMI
## you could change the compression level, lock the archive, add redundancy...
#RAR_EXTRA = -ep1 -m0 -k -rr5p
#RAR_EXTRA = -mx0 -mhe=on (for 7-zip)
## size in MB of the RAR volumes (0 by default meaning NO split)
## feel free to change the value or to comment the next line if you don't want to split the archive
RAR_SIZE = 42
## maximum number of archive volumes
## we'll use RAR_SIZE except if it genereates too many volumes
## in that case we'll update rar_size to be <size of post> / rar_max
RAR_MAX = 99
## keep rar folder after posting (otherwise it is automatically deleted uppon successful post)
#KEEP_RAR = true
## Remove root (parent) folder when compressing Folders using RAR
#RAR_NO_ROOT_FOLDER = true
## par2 redundancy percentage (0 by default meaning NO par2 generation)
PAR2_PCT = 8
## par2 (or alternative) absolute file path
## this is only useful if you compile from source (as par2 is included on Windows and the AppImage)
## or if you wish to use an alternative to par2 (for exemple Multipar on Windows)
## (in that case, you may need to set also PAR2_ARGS)
#PAR2_PATH = /usr/local/bin/parpar
#PAR2_PATH = /usr/bin/par2
#PAR2_PATH = C:\Program Files\MultiPar\par2j64.exe
## fixed parameters for the par2 (or alternative) command
## you could for exemple use Multipar on Windows
#PAR2_ARGS = -s5M -r1n*0.6 -m2048M -p1l --progress stdout -q (for parpar)
#PAR2_ARGS = c -l -m1024 -r8 -s768000 (for par2cmdline)
#PAR2_ARGS = create /rr8 /lc40 /lr /rd2 /ss768000 (for Multipar)
## length of the random generated archive's file name
LENGTH_NAME = 22
## length of the random archive's passsword
LENGTH_PASS = 15
##############################################################
## servers section ##
##############################################################
[server]
host = news.newshosting.com
port = 443
ssl = true
user = myUser
pass = myPass
connection = 30
enabled = true
nzbCheck = false
## You can add as many server if you have several providers by adding other "server" sections
#[server]
#host = news.otherprovider.com
#port = 563
#ssl = true
#user = myOtherUser
#pass = myOtherPass
#connection = 15
#enabled = false
#nzbCheck = false