aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2025-12-08 11:03:31 -0800
committerchrislu <chris.lu@gmail.com>2025-12-08 11:03:41 -0800
commit95f6a2bc13257dad9d4738685851cedf62808f67 (patch)
tree9bd6ebd8e7dabb3d57944775a7907a29835b636f
parent51c630b5ffbb78b8af7d4948d29f79e8d2aa08b6 (diff)
downloadseaweedfs-95f6a2bc13257dad9d4738685851cedf62808f67.tar.xz
seaweedfs-95f6a2bc13257dad9d4738685851cedf62808f67.zip
Added a complete webhook configuration example
-rw-r--r--weed/command/scaffold/notification.toml15
1 files changed, 15 insertions, 0 deletions
diff --git a/weed/command/scaffold/notification.toml b/weed/command/scaffold/notification.toml
index 4ddb3d4f6..c3f0886f8 100644
--- a/weed/command/scaffold/notification.toml
+++ b/weed/command/scaffold/notification.toml
@@ -52,3 +52,18 @@ enabled = false
# create binding myexchange => myqueue
topic_url = "rabbit://myexchange"
sub_url = "rabbit://myqueue"
+
+[notification.webhook]
+# Send file system events to HTTP webhook endpoints
+# Documentation: https://github.com/seaweedfs/seaweedfs/wiki/Filer-Notification-Webhook
+enabled = false
+endpoint = "https://your-server.com/webhook" # required: HTTP endpoint URL
+bearer_token = "" # optional: bearer token for authentication
+timeout_seconds = 10 # optional: HTTP timeout (default: 10, range: 1-300)
+max_retries = 3 # optional: retry attempts (default: 3, range: 0-10)
+backoff_seconds = 3 # optional: initial backoff delay (default: 3, range: 1-60)
+max_backoff_seconds = 30 # optional: max backoff delay (default: 30, range: backoff_seconds-300)
+workers = 5 # optional: concurrent workers (default: 5, range: 1-100)
+buffer_size = 10000 # optional: event buffer size (default: 10000, range: 100-1000000)
+# event_types = ["create", "update", "delete", "rename"] # optional: filter by event types (default: all)
+# path_prefixes = ["/important", "/data"] # optional: filter by path prefixes (default: all)