incoming.conf - names and addresses that feed us news
Key/value entries are a keyword immediately followed by a colon, at least one blank and a value. For example:
max-connections: 10
A legal key contains nor blanks, nor colon, nor ``#''. There are 3 different types of values: integers, booleans, and strings. Integers are as to be expected. A boolean value is either ``true'' or ``false'' (case is significant). A string value is any other sequence of characters. If the string needs to contain whitespace, then it must be quoted with double quotes.
Peer entries look like:
peer <name> { # body }
The word ``peer'' is required. ``<name>''is a label for this peer. The ``<name>'' is any string valid as a key. The body of a peer entry contains some number of key/value entries.
Group entries look like:
group <name> { # body }
The word ``group'' is required. The ``<name>'' is any string valid as a key. The body of a group entry contains any number of the three types of entries. So key/value pairs can be defined inside a group, and peers can be nested inside a group, and other groups can be nested inside a group.
Key/value entries that are defined outside of all peer and group entries are said to be at ``global scope''. Global key/value entries act as defaults for peers. When innd(8) looks for a specific value in a peer entry (for example, the maximum number of connections to allow), if the value is not defined in the peer entry, then the enclosing groups are examined for the entry (starting at the closest enclosing group). If there are no enclosing groups, or the enclosing groups don't define the key/value, then the value at global scope is used.
A small example could be:
# Global value applied to all peers that have # no value of their own. max-connections: 5 # A peer definition. peer uunet { hostname: usenet1.uu.net } peer vixie { hostname: gw.home.vix.com max-connections: 10 # override global value. } # A group of two peers who can open more # connections than normal group fast-sites { max-connections: 15 # Another peer. The ``max-connections'' value from the # ``fast-sites'' group scope is used. The ``hostname'' value # defaults to the peer's name. peer data.ramona.vix.com { } peer bb.home.vix.com { hostname: bb.home.vix.com max-connections: 20 # he can really cook. } }
Given the above configuration file, the defined peers would have the following values for the ``max-connections'' key.
uunet 5 vixie 10 data.ramona.vix.com 15 bb.home.vix.com 20
Ten keys are allowed:
Закладки на сайте Проследить за страницей |
Created 1996-2024 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |