Browse Source

[DOC] improve raw-output

keep-around/5eb75ff9bbaddad7f7e1cb91c2f9624f569c1ff0
genofire 10 months ago
parent
commit
5eb75ff9bb
No known key found for this signature in database GPG Key ID: 9D7D3C6BFF600C6A
3 changed files with 19 additions and 1 deletions
  1. + 1
    - 1
      cmd/config_test.go
  2. + 10
    - 0
      config_example.toml
  3. + 8
    - 0
      docs/docs_configuration.md

+ 1
- 1
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]

+ 10
- 0
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

+ 8
- 0
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 %}

Loading…
Cancel
Save