client.yml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435
  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, $p Message priority (1=min, 5=max)
  27. # $NTFY_TAGS $tags, $ta Message tags (comma separated list)
  28. #
  29. # Filters ('if:'):
  30. # You can filter 'message', 'title', 'priority' (comma-separated list, logical OR)
  31. # and 'tags' (comma-separated list, logical AND). See https://ntfy.sh/docs/subscribe/api/#filter-messages.
  32. #
  33. # subscribe: