Skip to content

Commit

Permalink
Improve configuration example (#150)
Browse files Browse the repository at this point in the history
  • Loading branch information
jschlyter authored Jan 24, 2025
1 parent 5ab3ca9 commit 12fc763
Showing 1 changed file with 28 additions and 27 deletions.
55 changes: 28 additions & 27 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,33 +11,34 @@ Client are assumed to be authenticated using mTLS and all submitted data must be

The default configuration file is `aggrec.toml`. Example configuration below:

clients_database = "clients"

metadata_base_url= "http://127.0.0.1:8080"

[s3]
endpoint_url = "http://localhost:9000"
bucket = "aggregates"
create_bucket = true
access_key_id = "minioadmin"
secret_access_key = "minioadmin"

[mongodb]
server = "mongodb://localhost/aggregates"

[mqtt]
broker = "mqtt://localhost"
topic = "aggregates"

[otlp]
spans_endpoint = "http://localhost:4317"
metrics_endpoint = "http://localhost:4317"
insecure = true

[cache]
size = 1000
ttl = 300

```toml
metadata_base_url= "https://aggrec.example.com"

clients_database = "https://nodeman.example.com/api/v1/node/{key_id}/public_key"

[s3]
endpoint_url = "http://localhost:9000"
bucket = "aggregates"
create_bucket = true
access_key_id = "minioadmin"
secret_access_key = "minioadmin"

[mongodb]
server = "mongodb://localhost/aggregates"

[mqtt]
broker = "mqtt://localhost"
topic = "aggregates"

[otlp]
spans_endpoint = "http://localhost:4317"
metrics_endpoint = "http://localhost:4317"
insecure = true

[key_cache]
size = 1000
ttl = 300
```

## API

Expand Down

0 comments on commit 12fc763

Please sign in to comment.