[DOC] improve raw-output
This commit is contained in:
parent
39e8f37eaa
commit
5eb75ff9bb
|
@ -25,7 +25,7 @@ func TestReadConfig(t *testing.T) {
|
||||||
assert.Contains(config.Respondd.Sites["ffhb"].Domains, "city")
|
assert.Contains(config.Respondd.Sites["ffhb"].Domains, "city")
|
||||||
|
|
||||||
// Test output plugins
|
// Test output plugins
|
||||||
assert.Len(config.Nodes.Output, 4)
|
assert.Len(config.Nodes.Output, 5)
|
||||||
outputs := config.Nodes.Output["meshviewer"].([]interface{})
|
outputs := config.Nodes.Output["meshviewer"].([]interface{})
|
||||||
assert.Len(outputs, 1)
|
assert.Len(outputs, 1)
|
||||||
meshviewer := outputs[0]
|
meshviewer := outputs[0]
|
||||||
|
|
|
@ -157,6 +157,16 @@ path = "/var/www/html/meshviewer/data/nodelist.json"
|
||||||
no_owner = true
|
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]
|
[database]
|
||||||
# this will send delete commands to the database to prune data
|
# this will send delete commands to the database to prune data
|
||||||
|
|
|
@ -548,6 +548,14 @@ path = "/var/www/html/meshviewer/data/nodelist.json"
|
||||||
## [[nodes.output.raw]]
|
## [[nodes.output.raw]]
|
||||||
{% method %}
|
{% method %}
|
||||||
This output takes the respondd response as sent by the node and includes it in a JSON document.
|
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 %}
|
{% endmethod %}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue