mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-04-07 10:56:49 +00:00
document private/servers.yaml (static servers)
This commit is contained in:
parent
d75b9f822a
commit
859ce66a03
@ -12,8 +12,9 @@ Configuring a Tahoe-LAFS node
|
||||
6. `Running A Helper`_
|
||||
7. `Running An Introducer`_
|
||||
8. `Other Files in BASEDIR`_
|
||||
9. `Other files`_
|
||||
10. `Example`_
|
||||
9. `Static Server Definitions`_
|
||||
10. `Other files`_
|
||||
11. `Example`_
|
||||
|
||||
A Tahoe-LAFS node is configured by writing to files in its base directory.
|
||||
These files are read by the node when it starts, so each time you change
|
||||
@ -662,6 +663,56 @@ This section describes these other files.
|
||||
``private/convergence`` is a zero-length file).
|
||||
|
||||
|
||||
Static Server Definitions
|
||||
=========================
|
||||
|
||||
The ``private/servers.yaml`` file defines "static servers": those which are
|
||||
not announced through the Introducer. This can also control how we connect to
|
||||
those servers.
|
||||
|
||||
Most clients do not need this file. It is only necessary if you want to use
|
||||
servers which are (for some specialized reason) not announced through the
|
||||
Introducer, or to connect to those servers in different ways. You might do
|
||||
this to "freeze" the server list: use the Introducer for a while, then copy
|
||||
all announcements into ``servers.yaml``, then stop using the Introducer
|
||||
entirely. Or you might have a private server that you don't want other users
|
||||
to learn about (via the Introducer). Or you might run a local server which is
|
||||
announced to everyone else as a Tor onion address, but which you can connect
|
||||
to directly (via TCP).
|
||||
|
||||
The file syntax is `YAML`_, with a top-level dictionary named ``storage``.
|
||||
Other items may be added in the future.
|
||||
|
||||
The ``storage`` dictionary takes keys which are server-ids, and values which
|
||||
are dictionaries with two keys: ``ann`` and ``connections``. The ``ann``
|
||||
value is a dictionary which will be used in lieu of the introducer
|
||||
announcement, so it can be populated by copying the ``ann`` dictionary from
|
||||
``NODEDIR/introducer_cache.yaml``. Static servers which use the node's
|
||||
default connection handlers only need a few keys:
|
||||
|
||||
* the server ID, which can be any string
|
||||
* a nickname, which is the string that is printed on the web interface
|
||||
* the ``anonymous-storage-FURL``, which is where the server lives
|
||||
* ``permutation-seed-base32``, which controls how shares are mapped to
|
||||
servers. This is normally computed from the server-ID, but can be
|
||||
overridden to maintain the mapping for older servers which used to use
|
||||
Foolscap TubIDs as server-IDs.
|
||||
* more important keys may be added in the future, as Accounting and
|
||||
HTTP-based servers are implemented
|
||||
|
||||
For example, a private static server could be defined with a
|
||||
``private/servers.yaml`` file like this::
|
||||
|
||||
storage:
|
||||
my-serverid-1:
|
||||
ann:
|
||||
nickname: my-server-1
|
||||
anonymous-storage-FURL: pb://u33m4y7klhz3bypswqkozwetvabelhxt@tcp:8.8.8.8:51298/eiu2i7p6d6mm4ihmss7ieou5hac3wn6b
|
||||
permutation-seed-base32: w2hqnbaa25yw4qgcvghl5psa3srpfgw3
|
||||
|
||||
.. _YAML: http://yaml.org/
|
||||
|
||||
|
||||
Other files
|
||||
===========
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user