]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/blob - docs/configuration.rst
docs/configuration.rst: clarification on scale suffixes for reserved_space.
[tahoe-lafs/tahoe-lafs.git] / docs / configuration.rst
1 =============================
2 Configuring a Tahoe-LAFS node
3 =============================
4
5 1.   `Node Types`_
6 2.  `Overall Node Configuration`_
7 3.  `Client Configuration`_
8 4.  `Storage Server Configuration`_
9 5.  `Frontend Configuration`_
10 6.  `Running A Helper`_
11 7.  `Running An Introducer`_
12 8.  `Other Files in BASEDIR`_
13 9.  `Other files`_
14 10. `Example`_
15
16 A Tahoe-LAFS node is configured by writing to files in its base directory.
17 These files are read by the node when it starts, so each time you change
18 them, you need to restart the node.
19
20 The node also writes state to its base directory, so it will create files on
21 its own.
22
23 This document contains a complete list of the config files that are examined
24 by the client node, as well as the state files that you'll observe in its
25 base directory.
26
27 The main file is named "``tahoe.cfg``", and is an ".INI"-style configuration
28 file (parsed by the Python stdlib 'ConfigParser' module: "``[name]``" section
29 markers, lines with "``key.subkey: value``", rfc822-style
30 continuations). There are also other files containing information that does
31 not easily fit into this format. The "``tahoe create-node``" or "``tahoe
32 create-client``" command will create an initial ``tahoe.cfg`` file for
33 you. After creation, the node will never modify the ``tahoe.cfg`` file: all
34 persistent state is put in other files.
35
36 The item descriptions below use the following types:
37
38 ``boolean``
39
40     one of (True, yes, on, 1, False, off, no, 0), case-insensitive
41
42 ``strports string``
43
44     a Twisted listening-port specification string, like "``tcp:80``" or
45     "``tcp:3456:interface=127.0.0.1``". For a full description of the format,
46     see `the Twisted strports documentation
47     <https://twistedmatrix.com/documents/current/api/twisted.application.strports.html>`_.
48     Please note, if interface= is not specified, Tahoe-LAFS will attempt to
49     bind the port specified on all interfaces.
50
51 ``FURL string``
52
53     a Foolscap endpoint identifier, like
54     ``pb://soklj4y7eok5c3xkmjeqpw@192.168.69.247:44801/eqpwqtzm``
55
56
57 Node Types
58 ==========
59
60 A node can be a client/server, an introducer, a statistics gatherer, or a
61 key generator.
62
63 Client/server nodes provide one or more of the following services:
64
65 * web-API service
66 * SFTP service
67 * FTP service
68 * drop-upload service
69 * helper service
70 * storage service.
71
72 A client/server that provides storage service (i.e. storing shares for
73 clients) is called a "storage server". If it provides any of the other
74 services, it is a "storage client" (a node can be both a storage server and a
75 storage client). A client/server node that provides web-API service is called
76 a "gateway".
77
78
79 Overall Node Configuration
80 ==========================
81
82 This section controls the network behavior of the node overall: which ports
83 and IP addresses are used, when connections are timed out, etc. This
84 configuration applies to all node types and is independent of the services
85 that the node is offering.
86
87 If your node is behind a firewall or NAT device and you want other clients to
88 connect to it, you'll need to open a port in the firewall or NAT, and specify
89 that port number in the tub.port option. If behind a NAT, you *may* need to
90 set the ``tub.location`` option described below.
91
92 ``[node]``
93
94 ``nickname = (UTF-8 string, optional)``
95
96     This value will be displayed in management tools as this node's
97     "nickname". If not provided, the nickname will be set to "<unspecified>".
98     This string shall be a UTF-8 encoded Unicode string.
99
100 ``web.port = (strports string, optional)``
101
102     This controls where the node's web server should listen, providing node
103     status and, if the node is a client/server, providing web-API service as
104     defined in `webapi.rst <frontends/webapi.rst>_`.
105
106     This file contains a Twisted "strports" specification such as "``3456``"
107     or "``tcp:3456:interface=127.0.0.1``". The "``tahoe create-node``" or
108     "``tahoe create-client``" commands set the ``web.port`` to
109     "``tcp:3456:interface=127.0.0.1``" by default; this is overridable by the
110     ``--webport`` option. You can make it use SSL by writing
111     "``ssl:3456:privateKey=mykey.pem:certKey=cert.pem``" instead.
112
113     If this is not provided, the node will not run a web server.
114
115 ``web.static = (string, optional)``
116
117     This controls where the ``/static`` portion of the URL space is
118     served. The value is a directory name (``~username`` is allowed, and
119     non-absolute names are interpreted relative to the node's basedir), which
120     can contain HTML and other files. This can be used to serve a
121     Javascript-based frontend to the Tahoe-LAFS node, or other services.
122
123     The default value is "``public_html``", which will serve
124     ``BASEDIR/public_html`` .  With the default settings,
125     ``http://127.0.0.1:3456/static/foo.html`` will serve the contents of
126     ``BASEDIR/public_html/foo.html`` .
127
128 ``tub.port = (integer, optional)``
129
130     This controls which port the node uses to accept Foolscap connections
131     from other nodes. If not provided, the node will ask the kernel for any
132     available port. The port will be written to a separate file (named
133     ``client.port`` or ``introducer.port``), so that subsequent runs will
134     re-use the same port.
135
136 ``tub.location = (string, optional)``
137
138     In addition to running as a client, each Tahoe-LAFS node also runs as a
139     server, listening for connections from other Tahoe-LAFS clients. The node
140     announces its location by publishing a "FURL" (a string with some
141     connection hints) to the Introducer. The string it publishes can be found
142     in ``BASEDIR/private/storage.furl`` . The ``tub.location`` configuration
143     controls what location is published in this announcement.
144
145     If you don't provide ``tub.location``, the node will try to figure out a
146     useful one by itself, by using tools like "``ifconfig``" to determine the
147     set of IP addresses on which it can be reached from nodes both near and
148     far.  It will also include the TCP port number on which it is listening
149     (either the one specified by ``tub.port``, or whichever port was assigned
150     by the kernel when ``tub.port`` is left unspecified).
151
152     You might want to override this value if your node lives behind a
153     firewall that is doing inbound port forwarding, or if you are using other
154     proxies such that the local IP address or port number is not the same one
155     that remote clients should use to connect. You might also want to control
156     this when using a Tor proxy to avoid revealing your actual IP address
157     through the Introducer announcement.
158
159     The value is a comma-separated string of host:port location hints, like
160     this::
161
162       123.45.67.89:8098,tahoe.example.com:8098,127.0.0.1:8098
163
164     A few examples:
165
166     * Emulate default behavior, assuming your host has IP address
167       123.45.67.89 and the kernel-allocated port number was 8098::
168
169         tub.port = 8098
170         tub.location = 123.45.67.89:8098,127.0.0.1:8098
171
172     * Use a DNS name so you can change the IP address more easily::
173
174         tub.port = 8098
175         tub.location = tahoe.example.com:8098
176
177     * Run a node behind a firewall (which has an external IP address) that
178       has been configured to forward port 7912 to our internal node's port
179       8098::
180
181         tub.port = 8098
182         tub.location = external-firewall.example.com:7912
183
184     * Run a node behind a Tor proxy (perhaps via ``torsocks``), in
185       client-only mode (i.e. we can make outbound connections, but other
186       nodes will not be able to connect to us). The literal
187       '``unreachable.example.org``' will not resolve, but will serve as a
188       reminder to human observers that this node cannot be reached. "Don't
189       call us.. we'll call you"::
190
191         tub.port = 8098
192         tub.location = unreachable.example.org:0
193
194     * Run a node behind a Tor proxy, and make the server available as a Tor
195       "hidden service". (This assumes that other clients are running their
196       node with ``torsocks``, such that they are prepared to connect to a
197       ``.onion`` address.) The hidden service must first be configured in
198       Tor, by giving it a local port number and then obtaining a ``.onion``
199       name, using something in the ``torrc`` file like::
200
201         HiddenServiceDir /var/lib/tor/hidden_services/tahoe
202         HiddenServicePort 29212 127.0.0.1:8098
203
204       once Tor is restarted, the ``.onion`` hostname will be in
205       ``/var/lib/tor/hidden_services/tahoe/hostname``. Then set up your
206       ``tahoe.cfg`` like::
207
208         tub.port = 8098
209         tub.location = ualhejtq2p7ohfbb.onion:29212
210
211     Most users will not need to set ``tub.location``.
212
213 ``log_gatherer.furl = (FURL, optional)``
214
215     If provided, this contains a single FURL string that is used to contact a
216     "log gatherer", which will be granted access to the logport. This can be
217     used to gather operational logs in a single place. Note that in previous
218     releases of Tahoe-LAFS, if an old-style ``BASEDIR/log_gatherer.furl``
219     file existed it would also be used in addition to this value, allowing
220     multiple log gatherers to be used at once. As of Tahoe-LAFS v1.9.0, an
221     old-style file is ignored and a warning will be emitted if one is
222     detected. This means that as of Tahoe-LAFS v1.9.0 you can have at most
223     one log gatherer per node. See ticket `#1423`_ about lifting this
224     restriction and letting you have multiple log gatherers.
225
226     .. _`#1423`: https://tahoe-lafs.org/trac/tahoe-lafs/ticket/1423
227
228 ``timeout.keepalive = (integer in seconds, optional)``
229
230 ``timeout.disconnect = (integer in seconds, optional)``
231
232     If ``timeout.keepalive`` is provided, it is treated as an integral number
233     of seconds, and sets the Foolscap "keepalive timer" to that value. For
234     each connection to another node, if nothing has been heard for a while,
235     we will attempt to provoke the other end into saying something. The
236     duration of silence that passes before sending the PING will be between
237     KT and 2*KT. This is mainly intended to keep NAT boxes from expiring idle
238     TCP sessions, but also gives TCP's long-duration keepalive/disconnect
239     timers some traffic to work with. The default value is 240 (i.e. 4
240     minutes).
241
242     If timeout.disconnect is provided, this is treated as an integral number
243     of seconds, and sets the Foolscap "disconnect timer" to that value. For
244     each connection to another node, if nothing has been heard for a while,
245     we will drop the connection. The duration of silence that passes before
246     dropping the connection will be between DT-2*KT and 2*DT+2*KT (please see
247     ticket `#521`_ for more details). If we are sending a large amount of
248     data to the other end (which takes more than DT-2*KT to deliver), we
249     might incorrectly drop the connection. The default behavior (when this
250     value is not provided) is to disable the disconnect timer.
251
252     See ticket `#521`_ for a discussion of how to pick these timeout values.
253     Using 30 minutes means we'll disconnect after 22 to 68 minutes of
254     inactivity. Receiving data will reset this timeout, however if we have
255     more than 22min of data in the outbound queue (such as 800kB in two
256     pipelined segments of 10 shares each) and the far end has no need to
257     contact us, our ping might be delayed, so we may disconnect them by
258     accident.
259
260     .. _`#521`: https://tahoe-lafs.org/trac/tahoe-lafs/ticket/521
261
262 ``ssh.port = (strports string, optional)``
263
264 ``ssh.authorized_keys_file = (filename, optional)``
265
266     This enables an SSH-based interactive Python shell, which can be used to
267     inspect the internal state of the node, for debugging. To cause the node
268     to accept SSH connections on port 8022 from the same keys as the rest of
269     your account, use::
270
271       [tub]
272       ssh.port = 8022
273       ssh.authorized_keys_file = ~/.ssh/authorized_keys
274
275 ``tempdir = (string, optional)``
276
277     This specifies a temporary directory for the web-API server to use, for
278     holding large files while they are being uploaded. If a web-API client
279     attempts to upload a 10GB file, this tempdir will need to have at least
280     10GB available for the upload to complete.
281
282     The default value is the ``tmp`` directory in the node's base directory
283     (i.e. ``BASEDIR/tmp``), but it can be placed elsewhere. This directory is
284     used for files that usually (on a Unix system) go into ``/tmp``. The
285     string will be interpreted relative to the node's base directory.
286
287
288 Client Configuration
289 ====================
290
291 ``[client]``
292
293 ``introducer.furl = (FURL string, mandatory)``
294
295     This FURL tells the client how to connect to the introducer. Each
296     Tahoe-LAFS grid is defined by an introducer. The introducer's FURL is
297     created by the introducer node and written into its base directory when
298     it starts, whereupon it should be published to everyone who wishes to
299     attach a client to that grid
300
301 ``helper.furl = (FURL string, optional)``
302
303     If provided, the node will attempt to connect to and use the given helper
304     for uploads. See `<helper.rst>`_ for details.
305
306 ``key_generator.furl = (FURL string, optional)``
307
308     If provided, the node will attempt to connect to and use the given
309     key-generator service, using RSA keys from the external process rather
310     than generating its own.
311
312 ``stats_gatherer.furl = (FURL string, optional)``
313
314     If provided, the node will connect to the given stats gatherer and
315     provide it with operational statistics.
316
317 ``shares.needed = (int, optional) aka "k", default 3``
318
319 ``shares.total = (int, optional) aka "N", N >= k, default 10``
320
321 ``shares.happy = (int, optional) 1 <= happy <= N, default 7``
322
323     These three values set the default encoding parameters. Each time a new
324     file is uploaded, erasure-coding is used to break the ciphertext into
325     separate shares. There will be ``N`` (i.e. ``shares.total``) shares
326     created, and the file will be recoverable if any ``k``
327     (i.e. ``shares.needed``) shares are retrieved. The default values are
328     3-of-10 (i.e.  ``shares.needed = 3``, ``shares.total = 10``). Setting
329     ``k`` to 1 is equivalent to simple replication (uploading ``N`` copies of
330     the file).
331
332     These values control the tradeoff between storage overhead and
333     reliability. To a first approximation, a 1MB file will use (1MB *
334     ``N``/``k``) of backend storage space (the actual value will be a bit
335     more, because of other forms of overhead). Up to ``N``-``k`` shares can
336     be lost before the file becomes unrecoverable.  So large ``N``/``k``
337     ratios are more reliable, and small ``N``/``k`` ratios use less disk
338     space. ``N`` cannot be larger than 256, because of the 8-bit
339     erasure-coding algorithm that Tahoe-LAFS uses. ``k`` can not be greater
340     than ``N``. See `<performance.rst>`_ for more details.
341
342     ``shares.happy`` allows you control over how well to "spread out" the
343     shares of an immutable file. For a successful upload, shares are
344     guaranteed to be initially placed on at least ``shares.happy`` distinct
345     servers, the correct functioning of any ``k`` of which is sufficient to
346     guarantee the availability of the uploaded file. This value should not be
347     larger than the number of servers on your grid.
348
349     A value of ``shares.happy`` <= ``k`` is allowed, but this is not
350     guaranteed to provide any redundancy if some servers fail or lose shares.
351     It may still provide redundancy in practice if ``N`` is greater than
352     the number of connected servers, because in that case there will typically
353     be more than one share on at least some storage nodes. However, since a
354     successful upload only guarantees that at least ``shares.happy`` shares
355     have been stored, the worst case is still that there is no redundancy.
356
357     (Mutable files use a different share placement algorithm that does not
358     currently consider this parameter.)
359
360 ``mutable.format = sdmf or mdmf``
361
362     This value tells Tahoe-LAFS what the default mutable file format should
363     be. If ``mutable.format=sdmf``, then newly created mutable files will be
364     in the old SDMF format. This is desirable for clients that operate on
365     grids where some peers run older versions of Tahoe-LAFS, as these older
366     versions cannot read the new MDMF mutable file format. If
367     ``mutable.format`` is ``mdmf``, then newly created mutable files will use
368     the new MDMF format, which supports efficient in-place modification and
369     streaming downloads. You can overwrite this value using a special
370     mutable-type parameter in the webapi. If you do not specify a value here,
371     Tahoe-LAFS will use SDMF for all newly-created mutable files.
372
373     Note that this parameter applies only to files, not to directories.
374     Mutable directories, which are stored in mutable files, are not
375     controlled by this parameter and will always use SDMF. We may revisit
376     this decision in future versions of Tahoe-LAFS.
377
378     See `<specifications/mutable.rst>`_ for details about mutable file
379     formats.
380
381 Frontend Configuration
382 ======================
383
384 The Tahoe client process can run a variety of frontend file-access protocols.
385 You will use these to create and retrieve files from the virtual filesystem.
386 Configuration details for each are documented in the following
387 protocol-specific guides:
388
389 HTTP
390
391     Tahoe runs a webserver by default on port 3456. This interface provides a
392     human-oriented "WUI", with pages to create, modify, and browse
393     directories and files, as well as a number of pages to check on the
394     status of your Tahoe node. It also provides a machine-oriented "WAPI",
395     with a REST-ful HTTP interface that can be used by other programs
396     (including the CLI tools). Please see `<frontends/webapi.rst>`_ for full
397     details, and the ``web.port`` and ``web.static`` config variables above.
398     The `<frontends/download-status.rst>`_ document also describes a few WUI
399     status pages.
400
401 CLI
402
403     The main "bin/tahoe" executable includes subcommands for manipulating the
404     filesystem, uploading/downloading files, and creating/running Tahoe
405     nodes. See `<frontends/CLI.rst>`_ for details.
406
407 SFTP, FTP
408
409     Tahoe can also run both SFTP and FTP servers, and map a username/password
410     pair to a top-level Tahoe directory. See `<frontends/FTP-and-SFTP.rst>`_
411     for instructions on configuring these services, and the ``[sftpd]`` and
412     ``[ftpd]`` sections of ``tahoe.cfg``.
413
414 Drop-Upload
415
416     As of Tahoe-LAFS v1.9.0, a node running on Linux can be configured to
417     automatically upload files that are created or changed in a specified
418     local directory. See `<frontends/drop-upload.rst>`_ for details.
419
420
421
422 Storage Server Configuration
423 ============================
424
425 ``[storage]``
426
427 ``enabled = (boolean, optional)``
428
429     If this is ``True``, the node will run a storage server, offering space
430     to other clients. If it is ``False``, the node will not run a storage
431     server, meaning that no shares will be stored on this node. Use ``False``
432     for clients who do not wish to provide storage service. The default value
433     is ``True``.
434
435 ``readonly = (boolean, optional)``
436
437     If ``True``, the node will run a storage server but will not accept any
438     shares, making it effectively read-only. Use this for storage servers
439     that are being decommissioned: the ``storage/`` directory could be
440     mounted read-only, while shares are moved to other servers. Note that
441     this currently only affects immutable shares. Mutable shares (used for
442     directories) will be written and modified anyway. See ticket `#390
443     <https://tahoe-lafs.org/trac/tahoe-lafs/ticket/390>`_ for the current
444     status of this bug. The default value is ``False``.
445
446 ``reserved_space = (str, optional)``
447
448     If provided, this value defines how much disk space is reserved: the
449     storage server will not accept any share that causes the amount of free
450     disk space to drop below this value. (The free space is measured by a
451     call to ``statvfs(2)`` on Unix, or ``GetDiskFreeSpaceEx`` on Windows, and
452     is the space available to the user account under which the storage server
453     runs.)
454
455     This string contains a number, with an optional case-insensitive scale
456     suffix, optionally followed by "B" or "iB". The supported scale suffixes
457     are "K", "M", "G", "T", "P" and "E", and a following "i" indicates to use
458     powers of 1024 rather than 1000. So "100MB", "100 M", "100000000B",
459     "100000000", and "100000kb" all mean the same thing. Likewise, "1MiB",
460     "1024KiB", "1024 Ki", and "1048576 B" all mean the same thing.
461
462     "``tahoe create-node``" generates a tahoe.cfg with
463     "``reserved_space=1G``", but you may wish to raise, lower, or remove the
464     reservation to suit your needs.
465
466 ``expire.enabled =``
467
468 ``expire.mode =``
469
470 ``expire.override_lease_duration =``
471
472 ``expire.cutoff_date =``
473
474 ``expire.immutable =``
475
476 ``expire.mutable =``
477
478     These settings control garbage collection, in which the server will
479     delete shares that no longer have an up-to-date lease on them. Please see
480     `<garbage-collection.rst>`_ for full details.
481
482
483 Running A Helper
484 ================
485
486 A "helper" is a regular client node that also offers the "upload helper"
487 service.
488
489 ``[helper]``
490
491 ``enabled = (boolean, optional)``
492
493     If ``True``, the node will run a helper (see `<helper.rst>`_ for
494     details).  The helper's contact FURL will be placed in
495     ``private/helper.furl``, from which it can be copied to any clients that
496     wish to use it. Clearly nodes should not both run a helper and attempt to
497     use one: do not create ``helper.furl`` and also define
498     ``[helper]enabled`` in the same node.  The default is ``False``.
499
500
501 Running An Introducer
502 =====================
503
504 The introducer node uses a different ``.tac`` file (named
505 "``introducer.tac``"), and pays attention to the ``[node]`` section, but not
506 the others.
507
508 The Introducer node maintains some different state than regular client nodes.
509
510 ``BASEDIR/introducer.furl``
511
512   This is generated the first time the introducer node is started, and used
513   again on subsequent runs, to give the introduction service a persistent
514   long-term identity. This file should be published and copied into new
515   client nodes before they are started for the first time.
516
517
518 Other Files in BASEDIR
519 ======================
520
521 Some configuration is not kept in ``tahoe.cfg``, for the following reasons:
522
523 * it is generated by the node at startup, e.g. encryption keys. The node
524   never writes to ``tahoe.cfg``.
525 * it is generated by user action, e.g. the "``tahoe create-alias``" command.
526
527 In addition, non-configuration persistent state is kept in the node's base
528 directory, next to the configuration knobs.
529
530 This section describes these other files.
531
532 ``private/node.pem``
533
534   This contains an SSL private-key certificate. The node generates this the
535   first time it is started, and re-uses it on subsequent runs. This
536   certificate allows the node to have a cryptographically-strong identifier
537   (the Foolscap "TubID"), and to establish secure connections to other nodes.
538
539 ``storage/``
540
541   Nodes that host StorageServers will create this directory to hold shares of
542   files on behalf of other clients. There will be a directory underneath it
543   for each StorageIndex for which this node is holding shares. There is also
544   an "incoming" directory where partially-completed shares are held while
545   they are being received.
546
547 ``tahoe-client.tac``
548
549   This file defines the client, by constructing the actual Client instance
550   each time the node is started. It is used by the "``twistd``" daemonization
551   program (in the ``-y`` mode), which is run internally by the "``tahoe
552   start``" command. This file is created by the "``tahoe create-node``" or
553   "``tahoe create-client``" commands.
554
555 ``tahoe-introducer.tac``
556
557   This file is used to construct an introducer, and is created by the
558   "``tahoe create-introducer``" command.
559
560 ``tahoe-key-generator.tac``
561
562   This file is used to construct a key generator, and is created by the
563   "``tahoe create-key-gernerator``" command.
564
565 ``tahoe-stats-gatherer.tac``
566
567   This file is used to construct a statistics gatherer, and is created by the
568   "``tahoe create-stats-gatherer``" command.
569
570 ``private/control.furl``
571
572   This file contains a FURL that provides access to a control port on the
573   client node, from which files can be uploaded and downloaded. This file is
574   created with permissions that prevent anyone else from reading it (on
575   operating systems that support such a concept), to insure that only the
576   owner of the client node can use this feature. This port is intended for
577   debugging and testing use.
578
579 ``private/logport.furl``
580
581   This file contains a FURL that provides access to a 'log port' on the
582   client node, from which operational logs can be retrieved. Do not grant
583   logport access to strangers, because occasionally secret information may be
584   placed in the logs.
585
586 ``private/helper.furl``
587
588   If the node is running a helper (for use by other clients), its contact
589   FURL will be placed here. See `<helper.rst>`_ for more details.
590
591 ``private/root_dir.cap`` (optional)
592
593   The command-line tools will read a directory cap out of this file and use
594   it, if you don't specify a '--dir-cap' option or if you specify
595   '--dir-cap=root'.
596
597 ``private/convergence`` (automatically generated)
598
599   An added secret for encrypting immutable files. Everyone who has this same
600   string in their ``private/convergence`` file encrypts their immutable files
601   in the same way when uploading them. This causes identical files to
602   "converge" -- to share the same storage space since they have identical
603   ciphertext -- which conserves space and optimizes upload time, but it also
604   exposes file contents to the possibility of a brute-force attack by people
605   who know that string. In this attack, if the attacker can guess most of the
606   contents of a file, then they can use brute-force to learn the remaining
607   contents.
608
609   So the set of people who know your ``private/convergence`` string is the
610   set of people who converge their storage space with you when you and they
611   upload identical immutable files, and it is also the set of people who
612   could mount such an attack.
613
614   The content of the ``private/convergence`` file is a base-32 encoded
615   string.  If the file doesn't exist, then when the Tahoe-LAFS client starts
616   up it will generate a random 256-bit string and write the base-32 encoding
617   of this string into the file. If you want to converge your immutable files
618   with as many people as possible, put the empty string (so that
619   ``private/convergence`` is a zero-length file).
620
621
622 Other files
623 ===========
624
625 ``logs/``
626
627   Each Tahoe-LAFS node creates a directory to hold the log messages produced
628   as the node runs. These logfiles are created and rotated by the
629   "``twistd``" daemonization program, so ``logs/twistd.log`` will contain the
630   most recent messages, ``logs/twistd.log.1`` will contain the previous ones,
631   ``logs/twistd.log.2`` will be older still, and so on. ``twistd`` rotates
632   logfiles after they grow beyond 1MB in size. If the space consumed by
633   logfiles becomes troublesome, they should be pruned: a cron job to delete
634   all files that were created more than a month ago in this ``logs/``
635   directory should be sufficient.
636
637 ``my_nodeid``
638
639   this is written by all nodes after startup, and contains a base32-encoded
640   (i.e. human-readable) NodeID that identifies this specific node. This
641   NodeID is the same string that gets displayed on the web page (in the
642   "which peers am I connected to" list), and the shortened form (the first
643   few characters) is recorded in various log messages.
644
645 ``access.blacklist``
646
647   Gateway nodes may find it necessary to prohibit access to certain
648   files. The web-API has a facility to block access to filecaps by their
649   storage index, returning a 403 "Forbidden" error instead of the original
650   file. For more details, see the "Access Blacklist" section of
651   `<frontends/webapi.rst>`_.
652
653
654 Example
655 =======
656
657 The following is a sample ``tahoe.cfg`` file, containing values for some of
658 the keys described in the previous section. Note that this is not a
659 recommended configuration (most of these are not the default values), merely
660 a legal one.
661
662 ::
663
664   [node]
665   nickname = Bob's Tahoe-LAFS Node
666   tub.port = 34912
667   tub.location = 123.45.67.89:8098,44.55.66.77:8098
668   web.port = 3456
669   log_gatherer.furl = pb://soklj4y7eok5c3xkmjeqpw@192.168.69.247:44801/eqpwqtzm
670   timeout.keepalive = 240
671   timeout.disconnect = 1800
672   ssh.port = 8022
673   ssh.authorized_keys_file = ~/.ssh/authorized_keys
674   
675   [client]
676   introducer.furl = pb://ok45ssoklj4y7eok5c3xkmj@tahoe.example:44801/ii3uumo
677   helper.furl = pb://ggti5ssoklj4y7eok5c3xkmj@helper.tahoe.example:7054/kk8lhr
678   
679   [storage]
680   enabled = True
681   readonly = True
682   reserved_space = 10000000000
683   
684   [helper]
685   enabled = True
686
687
688 Old Configuration Files
689 =======================
690
691 Tahoe-LAFS releases before v1.3.0 had no ``tahoe.cfg`` file, and used
692 distinct files for each item. This is no longer supported and if you have
693 configuration in the old format you must manually convert it to the new
694 format for Tahoe-LAFS to detect it. See `<historical/configuration.rst>`_.