X-Git-Url: http://www.git.cypherpunks.ru/?a=blobdiff_plain;ds=sidebyside;f=doc%2Fcfg%2Fgeneral.texi;h=2575779de6171bde4c9a803c3c34b79b7a61e10b;hb=857b50285a0b75f03c2f2bfa5daa39901cfdf320;hp=971b585025ead47d384a1ed60f6aff2f270c62e4;hpb=2b331a082bb710d1e5a529ed32dcbba0a2e843cb;p=nncp.git diff --git a/doc/cfg/general.texi b/doc/cfg/general.texi index 971b585..2575779 100644 --- a/doc/cfg/general.texi +++ b/doc/cfg/general.texi @@ -13,8 +13,16 @@ noprogress: true nohdr: true # MultiCast Discovery -mcd-listen: ["em0", "igb1"] -mcd-send: {em0: 60, igb1: 5} +mcd-listen: ["em[0-3]", "igb_.*"] +mcd-send: {"em[0-3]": 60, igb_.*: 5} + +# Yggdrasil aliases +yggdrasil-aliases: { + myprv: 60bb...27aa + bob-pub: 98de...ac19d + alice-endpoint: tcp://example.com:1234?key=689c...13fb + default-endpoints: tcp://[::1]:2345,alice-endpoint +} @end verbatim @table @code @@ -36,7 +44,7 @@ You can always force its showing with @option{-progress} command line option anyway. @anchor{CfgNoHdr} @item nohdr -@strong{nohdr} option disables @ref{HdrFile, .hdr} files usage. +@strong{nohdr} option disables @ref{HdrFile, @file{hdr/}} files usage. @end table And optional @ref{MCD, MultiCast Discovery} options: @@ -44,10 +52,21 @@ And optional @ref{MCD, MultiCast Discovery} options: @table @code @anchor{CfgMCDListen} @item mcd-listen -Specifies list of network interfaces @ref{nncp-caller} will listen for -incoming @ref{MCD} announcements. +Specifies list of network interfaces regular expression +@ref{nncp-caller} will listen for incoming @ref{MCD} announcements. @anchor{CfgMCDSend} @item mcd-send -Specifies list of network interfaces, and intervals in seconds, where -@ref{nncp-daemon} will send @ref{MCD} announcements. +Specifies list of network interfaces regular expressions, and intervals +in seconds, where @ref{nncp-daemon} will send @ref{MCD} announcements. @end table + +@anchor{CfgYggdrasilAliases} +Optional @ref{Yggdrasil}-related aliases are used for convenience and +keeping private keys away being used directly in command line. Each +@code{PUB}, @code{PRV}, @code{PEER}, @code{BIND} value in +@ref{nncp-daemon}'s @option{-yggdrasil} and in @code{yggdrasil:} +addresses is replaced with alias value. Moreover each entry in list of +@code{PUB}s, @code{PEER}s and @code{BIND} can be an alias too. Pay +attention, that all aliases ending with @code{prv} will be saved with +600 permissions when converting to @ref{Configuration directory, +directory layout}.