diff --git a/cmd/config_test.go b/cmd/config_test.go index 4499a5c..f21db98 100644 --- a/cmd/config_test.go +++ b/cmd/config_test.go @@ -25,7 +25,7 @@ func TestReadConfig(t *testing.T) { assert.Contains(config.Respondd.Sites["ffhb"].Domains, "city") // Test output plugins - assert.Len(config.Nodes.Output, 4) + assert.Len(config.Nodes.Output, 5) outputs := config.Nodes.Output["meshviewer"].([]interface{}) assert.Len(outputs, 1) meshviewer := outputs[0] diff --git a/config_example.toml b/config_example.toml index 11ad342..e7cab4a 100644 --- a/config_example.toml +++ b/config_example.toml @@ -157,6 +157,16 @@ path = "/var/www/html/meshviewer/data/nodelist.json" no_owner = true +# definition for raw.json +[[nodes.output.raw]] +enable = true +path = "/var/www/html/meshviewer/data/raw.json" + +[nodes.output.raw.filter] +# WARNING: if it is not set, it will publish contact information of other persons +no_owner = true + + [database] # this will send delete commands to the database to prune data diff --git a/docs/docs_configuration.md b/docs/docs_configuration.md index 04490c6..c2317b5 100644 --- a/docs/docs_configuration.md +++ b/docs/docs_configuration.md @@ -548,6 +548,14 @@ path = "/var/www/html/meshviewer/data/nodelist.json" ## [[nodes.output.raw]] {% method %} This output takes the respondd response as sent by the node and includes it in a JSON document. +{% sample lang="toml" %} +```toml +[[nodes.output.raw]] +enable = false +path = "/var/www/html/meshviewer/data/raw.json" +#[nodes.output.raw.filter] +#no_owner = false +``` {% endmethod %}