X-Git-Url: http://www.git.cypherpunks.ru/?p=nncp.git;a=blobdiff_plain;f=doc%2Fcfg%2Findex.texi;h=1b40823bd6787fe1f42ddc1c1f1c8d2d9c127881;hp=b1261a894ddd7dc8424785001e7869e67d735976;hb=203dfe36da7adf2b3089e4fa4017a67409cbad70;hpb=3b81f1e3caacc7dae5783c533d4a838d473cc241 diff --git a/doc/cfg/index.texi b/doc/cfg/index.texi index b1261a8..1b40823 100644 --- a/doc/cfg/index.texi +++ b/doc/cfg/index.texi @@ -1,6 +1,8 @@ @node Configuration +@cindex configuration file @unnumbered Configuration file +@cindex Hjson NNCP uses single file configuration file in @url{https://hjson.org/, Hjson} format (see also section about @ref{Configuration directory, directory layout}) . Initially it is created with @ref{nncp-cfgnew} @@ -30,6 +32,10 @@ neigh: { } @end verbatim +@cindex JSON +@pindex hjson-cli +@pindex gojq +@pindex gjo Do not forget that Hjson can be safely converted to JSON and vice versa (loosing formatting and comments of course). By default @command{hjson-cli} utility from @code{github.com/hjson/hjson-go} is @@ -44,11 +50,11 @@ need to add single key to the @code{neigh} section similar to the "self". Whole configuration file can be separated on five sections: @menu -* General options: CfgGeneral. -* Self-node keypairs: CfgSelf. -* Notifications: CfgNotify. -* Neighbours: CfgNeigh. -* Areas: CfgAreas. +* General options: CfgGeneral +* Self-node keypairs: CfgSelf +* Notifications: CfgNotify +* Neighbours: CfgNeigh +* Areas: CfgAreas You can optionally convert it to directory layout * Configuration directory::