client.yml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536
  1. # ntfy client config file
  2. # Base URL used to expand short topic names in the "ntfy publish" and "ntfy subscribe" commands.
  3. # If you self-host a ntfy server, you'll likely want to change this.
  4. #
  5. # default-host: https://ntfy.sh
  6. # Subscriptions to topics and their actions. This option is primarily used by the systemd service,
  7. # or if you cann "ntfy subscribe --from-config" directly.
  8. #
  9. # Example:
  10. # subscribe:
  11. # - topic: mytopic
  12. # command: /usr/local/bin/mytopic-triggered.sh
  13. # - topic: myserver.com/anothertopic
  14. # command: 'echo "$message"'
  15. # if:
  16. # priority: high,urgent
  17. #
  18. # Variables:
  19. # Variable Aliases Description
  20. # --------------- --------------------- -----------------------------------
  21. # $NTFY_ID $id Unique message ID
  22. # $NTFY_TIME $time Unix timestamp of the message delivery
  23. # $NTFY_TOPIC $topic Topic name
  24. # $NTFY_MESSAGE $message, $m Message body
  25. # $NTFY_TITLE $title, $t Message title
  26. # $NTFY_PRIORITY $priority, $prio, $p Message priority (1=min, 5=max)
  27. # $NTFY_TAGS $tags, $tag, $ta Message tags (comma separated list)
  28. # $NTFY_RAW $raw Raw JSON message
  29. #
  30. # Filters ('if:'):
  31. # You can filter 'message', 'title', 'priority' (comma-separated list, logical OR)
  32. # and 'tags' (comma-separated list, logical AND). See https://ntfy.sh/docs/subscribe/api/#filter-messages.
  33. #
  34. # subscribe: