Add maintained configuration examples
This commit is contained in:
@@ -46,6 +46,8 @@ cd cmd/weatherfeeder
|
||||
go run .
|
||||
```
|
||||
|
||||
Maintained copyable configs are available under [`examples/`](../examples/).
|
||||
|
||||
Build and run a local binary:
|
||||
|
||||
```sh
|
||||
|
||||
@@ -34,6 +34,7 @@ routes:
|
||||
|
||||
`sources` and `sinks` must each contain at least one entry. `routes` is optional.
|
||||
When `routes` is omitted, every configured sink receives every event kind.
|
||||
Maintained copyable configs are available under [`examples/`](../examples/).
|
||||
|
||||
## Production-Oriented Shape
|
||||
|
||||
@@ -63,7 +64,7 @@ sinks:
|
||||
params:
|
||||
uri: postgres://weatherdb:5432/weatherdb?sslmode=disable
|
||||
username: weatherdb
|
||||
password: "<set outside source control>"
|
||||
password: <database_password>
|
||||
prune: 3d
|
||||
|
||||
routes:
|
||||
@@ -213,3 +214,9 @@ Postgres `prune` must be a string duration.
|
||||
The config file is read directly from disk and has no built-in secret expansion.
|
||||
Keep real credentials out of repository-tracked configs. Use deployment tooling
|
||||
to render `config.yml` with the needed secret values before starting the daemon.
|
||||
|
||||
## Maintained Examples
|
||||
|
||||
- [Minimal stdout config](../examples/config.minimal.yml)
|
||||
- [NATS publishing config](../examples/config.nats.yml)
|
||||
- [Postgres persistence config](../examples/config.postgres.yml)
|
||||
|
||||
@@ -16,6 +16,8 @@ CLI surface, see [CLI reference](cli.md).
|
||||
The daemon has no admin subcommands and no runtime reload command. Change the
|
||||
config file and restart the process to apply configuration changes.
|
||||
|
||||
Maintained copyable configs are available under [`examples/`](../examples/).
|
||||
|
||||
## Runtime Lifecycle
|
||||
|
||||
On startup, `weatherfeeder`:
|
||||
|
||||
Reference in New Issue
Block a user