mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-11 15:46:53 +00:00
e4453adf82
- Fix deserialization error when parsing config from environment variables - Add proper array format support for adapters configuration - Update environment variable examples with correct format - Improve documentation for configuration loading - Implement helper functions for environment variable validation This change fixes the "invalid type: map, expected a sequence" error by ensuring proper formatting of array-type fields in environment variables.
29 lines
538 B
TOML
29 lines
538 B
TOML
# config.toml
|
|
store_path = "/var/log/event-notifier"
|
|
channel_capacity = 5000
|
|
|
|
[[adapters]]
|
|
type = "Webhook"
|
|
endpoint = "http://127.0.0.1:3000/webhook"
|
|
auth_token = "your-auth-token"
|
|
max_retries = 3
|
|
timeout = 50
|
|
|
|
[adapters.custom_headers]
|
|
custom_server = "value_server"
|
|
custom_client = "value_client"
|
|
|
|
[[adapters]]
|
|
type = "Kafka"
|
|
brokers = "localhost:9092"
|
|
topic = "notifications"
|
|
max_retries = 3
|
|
timeout = 60
|
|
|
|
[[adapters]]
|
|
type = "Mqtt"
|
|
broker = "mqtt.example.com"
|
|
port = 1883
|
|
client_id = "event-notifier"
|
|
topic = "events"
|
|
max_retries = 3 |