notification.toml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. # A sample TOML config file for SeaweedFS filer store
  2. # Used by both "weed filer" or "weed server -filer" and "weed filer.replicate"
  3. # Put this file to one of the location, with descending priority
  4. # ./notification.toml
  5. # $HOME/.seaweedfs/notification.toml
  6. # /etc/seaweedfs/notification.toml
  7. ####################################################
  8. # notification
  9. # send and receive filer updates for each file to an external message queue
  10. ####################################################
  11. [notification.log]
  12. # this is only for debugging perpose and does not work with "weed filer.replicate"
  13. enabled = false
  14. [notification.kafka]
  15. enabled = false
  16. hosts = [
  17. "localhost:9092"
  18. ]
  19. topic = "seaweedfs_filer"
  20. offsetFile = "./last.offset"
  21. offsetSaveIntervalSeconds = 10
  22. [notification.aws_sqs]
  23. # experimental, let me know if it works
  24. enabled = false
  25. aws_access_key_id = "" # if empty, loads from the shared credentials file (~/.aws/credentials).
  26. aws_secret_access_key = "" # if empty, loads from the shared credentials file (~/.aws/credentials).
  27. region = "us-east-2"
  28. sqs_queue_name = "my_filer_queue" # an existing queue name
  29. [notification.google_pub_sub]
  30. # read credentials doc at https://cloud.google.com/docs/authentication/getting-started
  31. enabled = false
  32. google_application_credentials = "/path/to/x.json" # path to json credential file
  33. project_id = "" # an existing project id
  34. topic = "seaweedfs_filer_topic" # a topic, auto created if does not exists
  35. [notification.gocdk_pub_sub]
  36. # The Go Cloud Development Kit (https://gocloud.dev).
  37. # PubSub API (https://godoc.org/gocloud.dev/pubsub).
  38. # Supports AWS SNS/SQS, Azure Service Bus, Google PubSub, NATS and RabbitMQ.
  39. enabled = false
  40. # This URL will Dial the RabbitMQ server at the URL in the environment
  41. # variable RABBIT_SERVER_URL and open the exchange "myexchange".
  42. # The exchange must have already been created by some other means, like
  43. # the RabbitMQ management plugin. Сreate myexchange of type fanout and myqueue then
  44. # create binding myexchange => myqueue
  45. topic_url = "rabbit://myexchange"
  46. sub_url = "rabbit://myqueue"