]>
Commit | Line | Data |
---|---|---|
02dc0a76 MT |
1 | |
2 | ||
3 | (************************************) | |
4 | (* Never edit options files when *) | |
5 | (* the daemon is running *) | |
6 | (************************************) | |
7 | (* SECTION : Main *) | |
8 | (* Main options *) | |
9 | (************************************) | |
10 | ||
11 | ||
12 | ||
13 | (* small name of client *) | |
14 | client_name = ipfire | |
15 | ||
16 | ||
17 | (************************************) | |
18 | (* SECTION : Interfaces *) | |
19 | (* Options to control ports used by mldonkey interfaces *) | |
20 | (************************************) | |
21 | ||
22 | ||
23 | ||
24 | (* list of IP address allowed to connect to the core via telnet/GUI/WEB | |
25 | for internal command set: list separated by spaces | |
26 | example for internal command: set allowed_ips "127.0.0.1 192.168.1.2" | |
27 | or for editing the ini-file: list separated by semi-colon | |
28 | example for ini-file: allowed_ips = [ "127.0.0.1"; "192.168.1.2";] | |
29 | wildcard=255 ie: use 192.168.0.255 for 192.168.0.* *) | |
30 | allowed_ips = [ | |
31 | "255.255.255.255";] | |
32 | ||
33 | (* port for Graphical Interfaces *) | |
34 | gui_port = 4001 | |
35 | ||
36 | (* port for GiFT Graphical Interfaces interaction. It was 1213, but the default is | |
37 | now 0 for disabled, because it does not check for a password. *) | |
38 | gift_port = 0 | |
39 | ||
40 | (* The port used to connect to your client with a WEB browser *) | |
41 | http_port = 4080 | |
42 | ||
43 | (* port for user interaction *) | |
44 | telnet_port = 4000 | |
45 | ||
46 | (* Aliases to commands. The alias (fist string) has to be | |
47 | whitespaceless, the outcome of the alias (second string) | |
48 | may have spaces (put it in quotation then). *) | |
49 | alias_commands = [ | |
50 | (quit, q); | |
51 | (exit, q);] | |
52 | ||
53 | ||
54 | (************************************) | |
55 | (* SECTION : Bandwidth *) | |
56 | (* *) | |
57 | (************************************) | |
58 | ||
59 | ||
60 | ||
61 | (* The maximal upload rate you can tolerate on your link in kBytes/s (0 = no limit) | |
62 | The limit will apply on all your connections (clients and servers) and both | |
63 | control and data messages. *) | |
64 | max_hard_upload_rate = 10 | |
65 | ||
66 | (* The maximal download rate you can tolerate on your link in kBytes/s (0 = no limit) | |
67 | The limit will apply on all your connections (clients and servers) and both | |
68 | control and data messages. *) | |
69 | max_hard_download_rate = 50 | |
70 | ||
71 | (* Maximal number of opened connections *) | |
72 | max_opened_connections = 200 | |
73 | ||
74 | (* Amount of indirect connections in percent (min 30, max 70) of max_opened_connections *) | |
75 | max_indirect_connections = 30 | |
76 | ||
77 | (* How many slots can be used for upload *) | |
78 | max_upload_slots = 5 | |
79 | ||
80 | (* Set aside a single reserved slot to upload to friends *) | |
81 | friends_upload_slot = true | |
82 | ||
83 | (* Maximum file size to benefit from the reserved slot for small files (0 to disable) *) | |
84 | small_files_slot_limit = 10240 | |
85 | ||
86 | (* Set this to true if you want to have dynamic upload slot allocation (experimental) *) | |
87 | dynamic_slots = false | |
88 | ||
89 | (* Maximal number of connections that can be opened per second *) | |
90 | max_connections_per_second = 5 | |
91 | ||
92 | (* list of IP addresses allowed to connect to the core with no limit on | |
93 | upload/download and upload slots. List separated by spaces, wildcard=255 | |
94 | ie: use 192.168.0.255 for 192.168.0.* *) | |
95 | nolimit_ips = [ | |
96 | "127.0.0.1";] | |
97 | ||
98 | (* This option enables MLdonkey to always read as much data as possible | |
99 | from a channel, but use more CPU as it must then copy the data in the | |
100 | channel buffer. *) | |
101 | copy_read_buffer = true | |
102 | ||
103 | ||
104 | (************************************) | |
105 | (* SECTION : Networks *) | |
106 | (* Networks options *) | |
107 | (************************************) | |
108 | ||
109 | ||
110 | ||
111 | (* Set to true if you also want mldonkey to run as an overnet client | |
112 | (enable_donkey must be true) *) | |
113 | enable_overnet = true | |
114 | ||
115 | (* Set to true if you also want mldonkey to run as an kademlia client | |
116 | (enable_donkey must be true, and only experimental) *) | |
117 | enable_kademlia = false | |
118 | ||
119 | (* Set to true if you want mldonkey to connect to edonkey servers | |
120 | (enable_donkey must be true, and only experimental) *) | |
121 | enable_servers = true | |
122 | ||
123 | (* Set to true if you also want mldonkey to run as an Bittorrent client *) | |
124 | enable_bittorrent = true | |
125 | ||
126 | (* Set to true if you also want mldonkey to run as a donkey client *) | |
127 | enable_donkey = true | |
128 | ||
129 | (* Set to true if you also want mldonkey to run as a napster client (experimental) *) | |
130 | enable_opennap = false | |
131 | ||
132 | (* Set to true if you also want mldonkey to run as a soulseek client (experimental) *) | |
133 | enable_soulseek = false | |
134 | ||
135 | (* Set to true if you also want mldonkey to run as a gnutella1 sub node (experimental) *) | |
136 | enable_gnutella = false | |
137 | ||
138 | (* Set to true if you also want mldonkey to run as a gnutella2 sub node (experimental) *) | |
139 | enable_gnutella2 = false | |
140 | ||
141 | (* Set to true if you also want mldonkey to run as a Fasttrack sub node (experimental) *) | |
142 | enable_fasttrack = false | |
143 | ||
144 | (* Set to true if you also want mldonkey to run as a direct-connect node (experimental) *) | |
145 | enable_directconnect = false | |
146 | ||
147 | (* Set to true if you also want mldonkey to download HTTP files (experimental) *) | |
148 | enable_fileTP = true | |
149 | ||
150 | ||
151 | (************************************) | |
152 | (* SECTION : Network Config *) | |
153 | (* Network config options *) | |
154 | (************************************) | |
155 | ||
156 | ||
157 | ||
158 | (* The last IP address used for this client *) | |
159 | client_ip = "127.0.0.1" | |
160 | ||
161 | (* Use the IP specified by 'client_ip' instead of trying to determine it | |
162 | ourself. Don't set this option to true if you have dynamic IP. *) | |
163 | force_client_ip = false | |
164 | ||
165 | (* User agent string (default = "default") *) | |
166 | user_agent = default | |
167 | ||
168 | (* A list of lines to download on the WEB: each line has | |
169 | the format: (kind, period, url), where kind is either | |
170 | 'server.met' for a server.met file (also in gz/bz2/zip format) | |
171 | containing ed2k server, or | |
172 | 'comments.met' for a file of comments, or | |
173 | 'guarding.p2p' for a blocklist file (also in gz/bz2/zip format), or | |
174 | 'ocl' for file in the ocl format containing overnet peers, or | |
175 | 'contact.dat' for an contact.dat file containing overnet peers, | |
176 | 'nodes.gzip' for a fasttrack nodes.gzip, | |
177 | and period is the period between updates (in hours), | |
178 | a period of zero means the file is only loaded once on startup, | |
179 | and url is the url of the file to download. | |
180 | IMPORTANT: Put the URL and the kind between quotes. | |
181 | EXAMPLE: | |
182 | web_infos = [ | |
183 | ("server.met", 0, "http://www.jd2k.com/server.met"); | |
184 | ("guarding.p2p", 96, "http://www.bluetack.co.uk/config/level1.gz"); | |
185 | ("ocl", 24, "http://members.lycos.co.uk/appbyhp2/FlockHelpApp/contact-files/contact.ocl"); | |
186 | ("contact.dat", 168, "http://download.overnet.org/contact.dat"); | |
187 | ] | |
188 | *) | |
189 | web_infos = [ | |
190 | ("guarding.p2p", 96, "http://www.bluetack.co.uk/config/level1.gz"); | |
191 | ("server.met", 0, "http://www.jd2k.com/server.met"); | |
192 | ("contact.dat", 168, "http://download.overnet.org/contact.dat"); | |
193 | ("geoip.dat", 0, "http://www.maxmind.com/download/geoip/database/GeoIP.dat.gz"); | |
194 | ("nodes.gzip", 0, "http://update.kceasy.com/update/fasttrack/nodes.gzip");] | |
195 | ||
196 | (* Cookies send with a http request (used for .torrent files and web_infos) *) | |
197 | referers = [ | |
198 | (".*suprnova.*", "http://www.suprnova.org/");] | |
199 | ||
200 | (* Cookies send with a http request (used for .torrent files and web_infos) *) | |
201 | cookies = [] | |
202 | ||
203 | (* Direct HTTP queries to HTTP proxy *) | |
204 | http_proxy_server = "" | |
205 | ||
206 | (* Port of HTTP proxy *) | |
207 | http_proxy_port = 800 | |
208 | ||
209 | (* Direct TCP connections to HTTP proxy (the proxy should support CONNECT) *) | |
210 | http_proxy_tcp = false | |
211 | ||
212 | ||
213 | (************************************) | |
214 | (* SECTION : HTML mods *) | |
215 | (* Options to configure HTML mode *) | |
216 | (************************************) | |
217 | ||
218 | ||
219 | ||
220 | (* bw_stats refresh delay (seconds) *) | |
221 | html_mods_bw_refresh_delay = 11 | |
222 | ||
223 | (* html_mods_theme to use (located in relative html_themes/<theme_name> directory | |
224 | leave blank to use internal theme *) | |
225 | html_mods_theme = "" | |
226 | ||
227 | ||
228 | (************************************) | |
229 | (* SECTION : Download *) | |
230 | (* Download options *) | |
231 | (************************************) | |
232 | ||
233 | ||
234 | ||
235 | (* Set to false if you don't want mldonkey to automatically put completed files | |
236 | in incoming directory *) | |
237 | auto_commit = true | |
238 | ||
239 | (* Set to true if you want all new downloads be paused immediatly | |
240 | will be set to false on core start. *) | |
241 | pause_new_downloads = false | |
242 | ||
243 | (* The maximal number of files in Downloading state (other ones are Queued) *) | |
244 | max_concurrent_downloads = 50 | |
245 | ||
246 | (* The maximal length of zero bytes between non-zero bytes in a file that | |
247 | should be interpreted as downloaded during a recovery *) | |
248 | max_recover_zeroes_gap = 16 | |
249 | ||
250 | (* A command that is called when a file is committed, does not work on MinGW. | |
251 | Arguments are (kept for compatability): | |
252 | $1 - temp file name, without path | |
253 | $2 - file size | |
254 | $3 - filename of the committed file | |
255 | Also these environment variables can be used (prefered way): | |
256 | $TEMPNAME - temp file name, including path | |
257 | $FILEID - same as $1 | |
258 | $FILESIZE - same as $2 | |
259 | $FILENAME - same as $3 | |
260 | $FILEHASH - internal hash | |
261 | $DURATION - download duration | |
262 | $INCOMING - directory used for commit | |
263 | $NETWORK - network used for downloading | |
264 | $ED2K_HASH - ed2k hash if MD4 is known *) | |
265 | file_completed_cmd = "" | |
266 | ||
267 | (* The command which is called when a download is started. Arguments | |
268 | are '-file <num>' *) | |
269 | file_started_cmd = "" | |
270 | ||
271 | ||
272 | (************************************) | |
273 | (* SECTION : Startup *) | |
274 | (* Startup options *) | |
275 | (************************************) | |
276 | ||
277 | ||
278 | ||
279 | (* The login of the user you want mldonkey to run as, after the ports | |
280 | have been bound (can be use not to run with root priviledges when | |
281 | a port < 1024 is needed) *) | |
282 | run_as_user = "" | |
283 | ||
284 | (* The UID of the user (0=disabled) you want mldonkey to run as, after the ports | |
285 | have been bound (can be use not to run with root priviledges when | |
286 | a port < 1024 is needed) *) | |
287 | run_as_useruid = 0 | |
288 | ||
289 | (* Ask for GUI start *) | |
290 | ask_for_gui = false | |
291 | ||
292 | (* Automatically Start the GUI *) | |
293 | start_gui = false | |
294 | ||
295 | (* Should MLdonkey try to recover downloads of files in temp/ at startup *) | |
296 | recover_temp_on_startup = true | |
297 | ||
298 | ||
299 | (************************************) | |
300 | (* SECTION : Mail *) | |
301 | (* Mail options *) | |
302 | (************************************) | |
303 | ||
304 | ||
305 | ||
306 | (* The mail server you want to use (must be SMTP). Use hostname or IP address *) | |
307 | smtp_server = "127.0.0.1" | |
308 | ||
309 | (* The port to use on the mail server (default 25) *) | |
310 | smtp_port = 25 | |
311 | ||
312 | (* Your e-mail if you want to receive mails when downloads are completed *) | |
313 | mail = "" | |
314 | ||
315 | (* Does your mail-server need <...> around addresses *) | |
316 | add_mail_brackets = false | |
317 | ||
318 | (* Send filename in mail subject *) | |
319 | filename_in_subject = true | |
320 | ||
321 | (* Put a prefix for the filename here which shows up in the notification mail *) | |
322 | url_in_mail = "" | |
323 | ||
324 | ||
325 | (************************************) | |
326 | (* SECTION : Paths *) | |
327 | (* Paths options *) | |
328 | (************************************) | |
329 | ||
330 | ||
331 | ||
332 | (* The directory where temporary files should be put *) | |
333 | temp_directory = /var/log/mldonkey/temp | |
334 | ||
335 | (* New directories in incoming_directories are created with these rights *) | |
336 | create_dir_mask = 755 | |
337 | ||
338 | (* Create new files as sparse, only valid on MinGW for files on NTFS drives *) | |
339 | create_file_sparse = true | |
340 | ||
341 | (* Mininum free space in MB on temp_directory, minimum 50 *) | |
342 | hdd_temp_minfree = 50 | |
343 | ||
344 | (* If true core shuts down when free space on temp dir is below hdd_temp_minfree, | |
345 | otherwise all downloads are paused and a warning email is sent. *) | |
346 | hdd_temp_stop_core = false | |
347 | ||
348 | (* Mininum free space in MB on core directory, minimum 20 *) | |
349 | hdd_coredir_minfree = 50 | |
350 | ||
351 | (* If true core shuts down when free space on core dir is below hdd_coredir_minfree, | |
352 | otherwise all downloads are paused and a warning email is sent. *) | |
353 | hdd_coredir_stop_core = true | |
354 | ||
355 | (* Send a warning mail each <interval> hours for each directory, 0 to deactivate mail warnings. *) | |
356 | hdd_send_warning_interval = 1 | |
357 | ||
358 | (* Incoming and shared directories. | |
359 | At least two entries have to be present here, one with strategy | |
360 | incoming_files and one with strategy incoming_directories. | |
361 | Both entries can point to the same directory. | |
362 | If one of the two strategies is missing, MLDonkey will create a default | |
363 | directory with its entry here. | |
364 | Finished BT multifile downloads are committed to the first directory | |
365 | with strategy incoming_directories. Other downloads are committed | |
366 | to the first directory with the strategy incoming_files. | |
367 | If more than one directory has one of the incoming_* strategies | |
368 | it will be ignored on commit, but they are shared nonetheless. | |
369 | Other strategies can be found in searches.ini, section customized_sharing. *) | |
370 | shared_directories = [ | |
371 | { dirname = "/var/log/mldonkey/incoming/files" | |
372 | networks = [] | |
373 | strategy = incoming_files | |
374 | priority = 0 | |
375 | }; | |
376 | { dirname = "/var/log/mldonkey/incoming/directories" | |
377 | networks = [] | |
378 | strategy = incoming_directories | |
379 | priority = 0 | |
380 | };] | |
381 | ||
382 | ||
383 | (************************************) | |
384 | (* SECTION : Security *) | |
385 | (* Security options *) | |
386 | (************************************) | |
387 | ||
388 | ||
389 | ||
390 | (* Commands that you are allowed to be call from the interface. These | |
391 | commands should short, so that the core is not blocked more than necessary. *) | |
392 | allowed_commands = [ | |
393 | (df, df); | |
394 | (ls, "ls incoming");] | |
395 | ||
396 | (* Allow you to use any command with ! in the interface instead of only the | |
397 | ones in allowed_commands *) | |
398 | allow_any_command = false | |
399 | ||
400 | (* Are all users allowed to change MLDonkey options? *) | |
401 | enable_user_config = true | |
402 | ||
403 | (* Allow others to browse our share list (0: none, 1: friends only, 2: everyone *) | |
404 | allow_browse_share = 1 | |
405 | ||
406 | (* Regexp of messages to filter out, example: string1|string2|string3 *) | |
407 | messages_filter = "Your client is connecting too fast" | |
408 | ||
409 | ||
410 | (************************************) | |
411 | (* SECTION : Other *) | |
412 | (* Other options *) | |
413 | (************************************) | |
414 | ||
415 | ||
416 | ||
417 | (* (experimental) *) | |
418 | save_results = 0 | |
419 | ||
420 | (* filters on replies (replies will be kept). *) | |
421 | filters = "" | |
422 | ||
423 | (* Buffer writes and flush after buffer_writes_delay seconds (experimental) *) | |
424 | buffer_writes = false | |
425 | ||
426 | (* build statistics about eMule mods *) | |
427 | emule_mods_count = false | |
428 | ||
429 | (* show all eMule mods in statistics *) | |
430 | emule_mods_showall = false | |
431 | ||
432 | (* How often (in hours) should a backup of the ini files be written into old_config. | |
433 | A value of zero means that a backup is written only when the core shuts down. *) | |
434 | backup_options_delay = 0 | |
435 | ||
436 | (* Define the total number of options archives in old_config. *) | |
437 | backup_options_generations = 10 | |
438 | ||
439 | (* Define the format of the archive, zip or tar.gz are valid. *) | |
440 | backup_options_format = "tar.gz" | |
441 | ||
442 | (* The maximum time in seconds to wait for networks to cleanly shutdown. *) | |
443 | shutdown_timeout = 3 | |
444 | ||
445 | (* The IP address used to bind the p2p clients *) | |
446 | client_bind_addr = "0.0.0.0" | |
447 | ||
448 | ||
449 | ||
450 | (*****************************************************************) | |
451 | (* *) | |
452 | (* ADVANCED OPTIONS *) | |
453 | (* *) | |
454 | (* All the options after this line are for the expert *) | |
455 | (* user. Do not modify them if you are not sure. *) | |
456 | (* *) | |
457 | (*****************************************************************) | |
458 | ||
459 | ||
460 | ||
461 | ||
462 | ||
463 | (************************************) | |
464 | (* SECTION : Interfaces FOR EXPERTS *) | |
465 | (* Options to control ports used by mldonkey interfaces *) | |
466 | (************************************) | |
467 | ||
468 | ||
469 | ||
470 | (* The IP address used to bind the http server *) | |
471 | http_bind_addr = "0.0.0.0" | |
472 | ||
473 | (* The IP address used to bind the gui server *) | |
474 | gui_bind_addr = "0.0.0.0" | |
475 | ||
476 | (* The IP address used to bind the telnet server *) | |
477 | telnet_bind_addr = "0.0.0.0" | |
478 | ||
479 | (* Should *all* sources for a file be shown on HTML/telnet vd <num> *) | |
480 | print_all_sources = true | |
481 | ||
482 | (* Improved telnet interface *) | |
483 | improved_telnet = true | |
484 | ||
485 | (* A space-separated list of keywords. Each keyword triggers | |
486 | printing information on the corresponding messages: | |
487 | verb : verbose mode (interesting not only for coders) | |
488 | mc : debug client messages | |
489 | mr|raw : debug raw messages | |
490 | mct : debug emule clients tags | |
491 | ms : debug server messages | |
492 | sm : debug source management | |
493 | net : debug net | |
494 | gui : debug gui | |
495 | no-login : disable login messages | |
496 | file : debug file handling | |
497 | do : some download warnings | |
498 | up : some upload warnings | |
499 | unk : unknown messages | |
500 | ov : overnet | |
501 | loc : debug source research/master servers | |
502 | share: debug sharing | |
503 | md4 : md4 computation | |
504 | connect : debug connections | |
505 | udp : udp messages | |
506 | ultra|super : debug supernode | |
507 | swarming : debug swarming | |
508 | hc : http_client messages | |
509 | hs : http_server messages | |
510 | act : debug activity | |
511 | bw : debug bandwidth | |
512 | unexp : debug unexpected messages | |
513 | *) | |
514 | verbosity = "" | |
515 | ||
516 | ||
517 | (************************************) | |
518 | (* SECTION : Bandwidth FOR EXPERTS *) | |
519 | (* *) | |
520 | (************************************) | |
521 | ||
522 | ||
523 | ||
524 | (* The delay in milliseconds to wait in the event loop. Can be decreased to | |
525 | increase the bandwidth usage, or increased to lower the CPU usage. *) | |
526 | loop_delay = 20 | |
527 | ||
528 | ||
529 | (************************************) | |
530 | (* SECTION : Networks FOR EXPERTS *) | |
531 | (* Networks options *) | |
532 | (************************************) | |
533 | ||
534 | ||
535 | ||
536 | (* Set to true if you also want mldonkey to run as a OpenFT sub node (experimental) *) | |
537 | enable_openft = false | |
538 | ||
539 | ||
540 | (************************************) | |
541 | (* SECTION : Network Config FOR EXPERTS *) | |
542 | (* Network config options *) | |
543 | (************************************) | |
544 | ||
545 | ||
546 | ||
547 | (* URLs of RSS feeds *) | |
548 | rss_feeds = [] | |
549 | ||
550 | (* Keep IP blocking ranges descriptions in memory *) | |
551 | ip_blocking_descriptions = false | |
552 | ||
553 | (* IP blocking list filename (peerguardian format), can also be in gz/bz2/zip format | |
554 | Zip files must contain either a file named guarding.p2p or guarding_full.p2p. *) | |
555 | ip_blocking = "" | |
556 | ||
557 | (* List of countries to block connections from/to (requires Geoip). | |
558 | Names are in ISO 3166 format, see http://www.maxmind.com/app/iso3166 | |
559 | You can also at your own risk use "Unknown" for IPs Geoip won't recognize. *) | |
560 | ip_blocking_countries = [] | |
561 | ||
562 | (* false: use ip_blocking_countries as block list, all other countries are allowed | |
563 | true: use ip_blocking_countries as allow list, all other countries are blocked *) | |
564 | ip_blocking_countries_block = false | |
565 | ||
566 | (* Location of GeoIP.dat (Get one from http://www.maxmind.com/download/geoip/database/) *) | |
567 | geoip_dat = "" | |
568 | ||
569 | (* The size of the header of a TCP/IP packet on your connection (ppp adds | |
570 | 14 bytes sometimes, so modify to take that into account) *) | |
571 | tcpip_packet_size = 40 | |
572 | ||
573 | (* The size of the MTU of a TCP/IP packet on your connection *) | |
574 | mtu_packet_size = 1500 | |
575 | ||
576 | (* The size of the frame packet on your network (on my cable link, it is 250) *) | |
577 | packet_frame_size = 250 | |
578 | ||
579 | (* The size of the minimal packet you want mldonkey to send when data is | |
580 | available on the connection *) | |
581 | minimal_packet_size = 600 | |
582 | ||
583 | (* Should a connection check if the peer we are connected to is still alive? | |
584 | This implies some bandwidth-cost (with 200 connections ~10-20%) *) | |
585 | socket_keepalive = false | |
586 | ||
587 | ||
588 | (************************************) | |
589 | (* SECTION : HTML mods FOR EXPERTS *) | |
590 | (* Options to configure HTML mode *) | |
591 | (************************************) | |
592 | ||
593 | ||
594 | ||
595 | (* Whether to use the modified WEB interface *) | |
596 | html_mods = true | |
597 | ||
598 | (* Which html_mods style to use (set with html_mods_style command) *) | |
599 | html_mods_style = 0 | |
600 | ||
601 | (* Whether to use human readable GMk number format *) | |
602 | html_mods_human_readable = true | |
603 | ||
604 | (* Whether to use relative availability in the WEB interface *) | |
605 | html_mods_use_relative_availability = true | |
606 | ||
607 | (* Whether to display the Net column in vd output *) | |
608 | html_mods_vd_network = true | |
609 | ||
610 | (* Whether to display the Active Sources column in vd output *) | |
611 | html_mods_vd_active_sources = true | |
612 | ||
613 | (* Whether to display the Age column in vd output *) | |
614 | html_mods_vd_age = true | |
615 | ||
616 | (* Show graph in vd output *) | |
617 | html_mods_vd_gfx = true | |
618 | ||
619 | (* Remove graph files on core shutdown *) | |
620 | html_mods_vd_gfx_remove = false | |
621 | ||
622 | (* Fill graph in vd output *) | |
623 | html_mods_vd_gfx_fill = true | |
624 | ||
625 | (* Split download and upload graph in vd output *) | |
626 | html_mods_vd_gfx_split = false | |
627 | ||
628 | (* Stacked download and upload graph *) | |
629 | html_mods_vd_gfx_stack = true | |
630 | ||
631 | (* Flip up/side graph position in vd output *) | |
632 | html_mods_vd_gfx_flip = true | |
633 | ||
634 | (* Show mean line on graph in vd output *) | |
635 | html_mods_vd_gfx_mean = true | |
636 | ||
637 | (* Show transparent graph in vd output (only for png) *) | |
638 | html_mods_vd_gfx_transparent = true | |
639 | ||
640 | (* Draw graph as png if true, else draw as jpg in vd output *) | |
641 | html_mods_vd_gfx_png = true | |
642 | ||
643 | (* Show hourly graph in vd output *) | |
644 | html_mods_vd_gfx_h = true | |
645 | ||
646 | (* Graph x size in vd output ( 320 < x < 3600 ) *) | |
647 | html_mods_vd_gfx_x_size = 630 | |
648 | ||
649 | (* Graph y size in vd output ( 200 < y < 1200 ) *) | |
650 | html_mods_vd_gfx_y_size = 200 | |
651 | ||
652 | (* Draw tag graph *) | |
653 | html_mods_vd_gfx_tag = false | |
654 | ||
655 | (* Use tag source image *) | |
656 | html_mods_vd_gfx_tag_use_source = false | |
657 | ||
658 | (* Tag source image name *) | |
659 | html_mods_vd_gfx_tag_source = image | |
660 | ||
661 | (* Draw tag as png if true, else draw as jpg in vd output *) | |
662 | html_mods_vd_gfx_tag_png = true | |
663 | ||
664 | (* Enable tag graph title *) | |
665 | html_mods_vd_gfx_tag_enable_title = true | |
666 | ||
667 | (* Tag graph title *) | |
668 | html_mods_vd_gfx_tag_title = "MLNet traffic" | |
669 | ||
670 | (* Tag graph title x pos in vd output | |
671 | *) | |
672 | html_mods_vd_gfx_tag_title_x_pos = 4 | |
673 | ||
674 | (* Tag graph title y pos in vd output *) | |
675 | html_mods_vd_gfx_tag_title_y_pos = 1 | |
676 | ||
677 | (* Tag graph download x pos in vd output *) | |
678 | html_mods_vd_gfx_tag_dl_x_pos = 4 | |
679 | ||
680 | (* Tag graph download y pos in vd output *) | |
681 | html_mods_vd_gfx_tag_dl_y_pos = 17 | |
682 | ||
683 | (* Tag graph upload x pos in vd output *) | |
684 | html_mods_vd_gfx_tag_ul_x_pos = 4 | |
685 | ||
686 | (* Tag graph upload y pos in vd output *) | |
687 | html_mods_vd_gfx_tag_ul_y_pos = 33 | |
688 | ||
689 | (* Tag graph x size in vd output ( 130 < x < 3600 ) *) | |
690 | html_mods_vd_gfx_tag_x_size = 80 | |
691 | ||
692 | (* Tag graph y size in vd output ( 50 < x < 1200 ) *) | |
693 | html_mods_vd_gfx_tag_y_size = 50 | |
694 | ||
695 | (* Whether to display the Last column in vd output *) | |
696 | html_mods_vd_last = true | |
697 | ||
698 | (* Whether to display the Priority column in vd output *) | |
699 | html_mods_vd_prio = true | |
700 | ||
701 | (* Whether to display the Queues in vd # output *) | |
702 | html_mods_vd_queues = true | |
703 | ||
704 | (* Change height of download indicator bar in vd output *) | |
705 | html_vd_barheight = 2 | |
706 | ||
707 | (* Whether to display chunks list as graph or text in vd output *) | |
708 | html_vd_chunk_graph = true | |
709 | ||
710 | (* Change style of chunk graph *) | |
711 | html_vd_chunk_graph_style = 0 | |
712 | ||
713 | (* Change max width of chunk graph *) | |
714 | html_vd_chunk_graph_max_width = 200 | |
715 | ||
716 | (* Whether to display the pending slots in uploaders command *) | |
717 | html_mods_show_pending = true | |
718 | ||
719 | (* Whether to load the mldonkey_messages.ini file (false=use internal settings) *) | |
720 | html_mods_load_message_file = false | |
721 | ||
722 | (* Maximum chat messages to log in memory *) | |
723 | html_mods_max_messages = 50 | |
724 | ||
725 | (* Whether to use checkboxes in the WEB interface for download list *) | |
726 | html_checkbox_vd_file_list = true | |
727 | ||
728 | (* Whether to use checkboxes in the WEB interface for search result list *) | |
729 | html_checkbox_search_file_list = false | |
730 | ||
731 | (* Use gzip compression on web pages *) | |
732 | html_use_gzip = false | |
733 | ||
734 | (* Whether to use the fancy javascript tooltips or plain html-title *) | |
735 | html_mods_use_js_tooltips = true | |
736 | ||
737 | (* How long to wait before displaying the tooltips *) | |
738 | html_mods_js_tooltips_wait = 0 | |
739 | ||
740 | (* How long to display the tooltips *) | |
741 | html_mods_js_tooltips_timeout = 100000 | |
742 | ||
743 | (* Use javascript to display option help text as js popup (true=use js, false=use html tables) *) | |
744 | html_mods_use_js_helptext = true | |
745 | ||
746 | ||
747 | (************************************) | |
748 | (* SECTION : Debug FOR EXPERTS *) | |
749 | (* Debug options *) | |
750 | (************************************) | |
751 | ||
752 | ||
753 | ||
754 | (* If this option is set, IP addresses on the local network are allowed | |
755 | (only for debugging) *) | |
756 | allow_local_network = false | |
757 | ||
758 | (* size of log in number of records *) | |
759 | log_size = 300 | |
760 | ||
761 | (* Maximum size of log_file in MB *) | |
762 | log_file_size = 2 | |
763 | ||
764 | (* The file in which you want mldonkey to log its debug messages. If you | |
765 | set this option, mldonkey will log this info in the file until you use the | |
766 | 'close_log' command. The log file may become very large. You can | |
767 | also enable logging in a file after startup using the 'log_file' command. *) | |
768 | log_file = "mlnet.log" | |
769 | ||
770 | (* number of lines for GUI console messages *) | |
771 | gui_log_size = 30 | |
772 | ||
773 | ||
774 | (************************************) | |
775 | (* SECTION : Download FOR EXPERTS *) | |
776 | (* Download options *) | |
777 | (************************************) | |
778 | ||
779 | ||
780 | ||
781 | (* Set to true if you want MLdonkey to emulate sparse files on your disk. | |
782 | Files will use less space, but <preview> and <recover> won't work anymore. | |
783 | Works only on Edonkey plugin. EXPERIMENTAL. *) | |
784 | emulate_sparsefiles = false | |
785 | ||
786 | (* How many sources to use to download each chunk *) | |
787 | sources_per_chunk = 3 | |
788 | ||
789 | (* What algorithm to use to select blocks (currently 1 or 2) *) | |
790 | swarming_block_selection_algorithm = 1 | |
791 | ||
792 | ||
793 | (************************************) | |
794 | (* SECTION : Startup FOR EXPERTS *) | |
795 | (* Startup options *) | |
796 | (************************************) | |
797 | ||
798 | ||
799 | ||
800 | (* How many megabytes should MLdonkey keep for saving configuration files. *) | |
801 | config_files_security_space = 10 | |
802 | ||
803 | ||
804 | (************************************) | |
805 | (* SECTION : Paths FOR EXPERTS *) | |
806 | (* Paths options *) | |
807 | (************************************) | |
808 | ||
809 | ||
810 | ||
811 | (* Name of program used for preview (first arg is local filename, second arg | |
812 | is name of file as searched on eDonkey *) | |
813 | previewer = mldonkey_previewer | |
814 | ||
815 | (* Directory where mldonkey binaries are installed *) | |
816 | mldonkey_bin = "." | |
817 | ||
818 | (* Name of GUI to start *) | |
819 | mldonkey_gui = "./mlgui" | |
820 | ||
821 | ||
822 | (************************************) | |
823 | (* SECTION : MLChat FOR EXPERTS *) | |
824 | (* MLChat options *) | |
825 | (************************************) | |
826 | ||
827 | ||
828 | ||
829 | (* port of the external chat application *) | |
830 | chat_app_port = 5036 | |
831 | ||
832 | (* hostname of the external chat application *) | |
833 | chat_app_host = localhost | |
834 | ||
835 | (* port used by the external chat application to use the core as a proxy *) | |
836 | chat_port = 4002 | |
837 | ||
838 | (* The IP address used to bind the chat server *) | |
839 | chat_bind_addr = "0.0.0.0" | |
840 | ||
841 | (* the id to use for communicating with the core console through chat interface *) | |
842 | chat_console_id = "donkey console" | |
843 | ||
844 | (* use the chat to indicate when a file has been downloaded *) | |
845 | chat_warning_for_downloaded = true | |
846 | ||
847 | ||
848 | (************************************) | |
849 | (* SECTION : Other FOR EXPERTS *) | |
850 | (* Other options *) | |
851 | (************************************) | |
852 | ||
853 | ||
854 | ||
855 | (* keep seen files in history to allow local search (can be expensive in memory) *) | |
856 | use_file_history = false | |
857 | ||
858 | (* Buffer writes and flush after buffer_writes_delay seconds (experimental) *) | |
859 | buffer_writes_delay = 30. | |
860 | ||
861 | (* Flush buffers if buffers exceed buffer_writes_threshold kB (experimental) *) | |
862 | buffer_writes_threshold = 1024 | |
863 | ||
864 | (* The conversions to apply on Unicode characters *) | |
865 | utf8_filename_conversions = [] | |
866 | ||
867 | (* The size of the buffer between the client and its GUI. Can be useful | |
868 | to increase when the connection between them has a small bandwith *) | |
869 | interface_buffer = 1000000 | |
870 | ||
871 | (* The size long names will be shortened to in the interface *) | |
872 | max_name_len = 50 | |
873 | ||
874 | (* The size long client names will be shortened to in the interface *) | |
875 | max_client_name_len = 25 | |
876 | ||
877 | (* Is the default terminal an ANSI terminal (escape sequences can be used) *) | |
878 | term_ansi = true | |
879 | ||
880 | (* Delay between updates to the GUI *) | |
881 | update_gui_delay = 1. | |
882 | ||
883 | (* The realm shown when connecting with a WEB browser *) | |
884 | http_realm = MLdonkey | |
885 | ||
886 | (* This option controls whether the WEB interface should use frames or not *) | |
887 | use_html_frames = true | |
888 | ||
889 | (* This option controls whether the WEB interface should show frame borders or not *) | |
890 | html_frame_border = true | |
891 | ||
892 | (* The height of the command frame in pixel (depends on your screen and browser sizes) *) | |
893 | commands_frame_height = 46 | |
894 | ||
895 | (* Force compaction every <n> hours (in [1..24]) *) | |
896 | compaction_delay = 2 | |
897 | ||
898 | (* The delay between reloads of the vd output in the WEB interface *) | |
899 | vd_reload_delay = 120 | |
900 | ||
901 | (* (experimental) *) | |
902 | dp500_pclink = false | |
903 | ||
904 | (* (experimental) *) | |
905 | dp500_port = 8000 | |
906 | ||
907 | (* (experimental) *) | |
908 | dp500_buffer = 2000000 | |
909 | ||
910 | (* (experimental) *) | |
911 | dp500_directory = dp500 | |
912 | ||
913 | (* Should the MLSUBMIT.REG file be created *) | |
914 | create_mlsubmit = true | |
915 | ||
916 | (* Size of the minor heap in kB *) | |
917 | minor_heap_size = 32 | |
918 | ||
919 | (* The source queues to display in source lists (see 'sources' command) *) | |
920 | relevant_queues = [ | |
921 | 0; | |
922 | 1; | |
923 | 2; | |
924 | 3; | |
925 | 4; | |
926 | 5; | |
927 | 6; | |
928 | 8; | |
929 | 9; | |
930 | 10;] | |
931 | ||
932 | (* The minimal delay between two connections to the same client (in seconds) *) | |
933 | min_reask_delay = 600 | |
934 | ||
935 | (* Whether to display results already downloaded *) | |
936 | display_downloaded_results = true | |
937 | ||
938 | (* Minimal number of results for filter form to appear *) | |
939 | filter_table_threshold = 50 | |
940 | ||
941 | (* Maximal size of the buffers of a client *) | |
942 | client_buffer_size = 500000 | |
943 | ||
944 | (* The delay between two saves of the 'downloads.ini' file (default is 15 minutes). | |
945 | Changes to this option require a core restart. *) | |
946 | save_options_delay = 900. | |
947 | ||
948 | (* timeout when connecting to a server *) | |
949 | server_connection_timeout = 30. | |
950 | ||
951 | (* The delay between one glance at a file and another *) | |
952 | download_sample_rate = 1. | |
953 | ||
954 | (* How many samples go into an estimate of transfer rates *) | |
955 | download_sample_size = 10 | |
956 | ||
957 | (* This option defines a set of date at which some commands have to be executed. | |
958 | For each tuple, the first argument is a list of week days (from 0 to 6), | |
959 | the second is a list of hours (from 0 to 23) and the last one a command to | |
960 | execute. Can be used with 'pause all' and 'resume all' for example to | |
961 | resume and pause downloads automatically for the night. *) | |
962 | calendar = [] | |
963 | ||
964 | (* The percentage of free memory before a compaction is triggered *) | |
965 | compaction_overhead = 25 | |
966 | ||
967 | (* The major GC speed is computed from this parameter. This is the memory | |
968 | that will be "wasted" because the GC does not immediatly collect | |
969 | unreachable blocks. It is expressed as a percentage of the memory used | |
970 | for live data. The GC will work more (use more CPU time and collect | |
971 | blocks more eagerly) if space_overhead is smaller. *) | |
972 | space_overhead = 80 | |
973 | ||
974 | (* Maximal number of results displayed for a search *) | |
975 | max_displayed_results = 1000 | |
976 | ||
977 | (* (internal option) *) | |
978 | options_version = 13 |