client.yml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. # Default credentials will be used with "ntfy publish" and "ntfy subscribe" if no other credentials are provided.
  7. # You can set a default token to use or a default user:password combination, but not both. For an empty password,
  8. # use empty double-quotes ("")
  9. # default-token:
  10. # default-user:
  11. # default-password:
  12. # Default command will execute after "ntfy subscribe" receives a message if no command is provided in subscription below
  13. # default-command:
  14. # Subscriptions to topics and their actions. This option is primarily used by the systemd service,
  15. # or if you cann "ntfy subscribe --from-config" directly.
  16. #
  17. # Example:
  18. # subscribe:
  19. # - topic: mytopic
  20. # command: /usr/local/bin/mytopic-triggered.sh
  21. # - topic: myserver.com/anothertopic
  22. # command: 'echo "$message"'
  23. # if:
  24. # priority: high,urgent
  25. # - topic: secret
  26. # command: 'notify-send "$m"'
  27. # user: phill
  28. # password: mypass
  29. # - topic: token_topic
  30. # token: tk_AgQdq7mVBoFD37zQVN29RhuMzNIz2
  31. #
  32. # Variables:
  33. # Variable Aliases Description
  34. # --------------- --------------------- -----------------------------------
  35. # $NTFY_ID $id Unique message ID
  36. # $NTFY_TIME $time Unix timestamp of the message delivery
  37. # $NTFY_TOPIC $topic Topic name
  38. # $NTFY_MESSAGE $message, $m Message body
  39. # $NTFY_TITLE $title, $t Message title
  40. # $NTFY_PRIORITY $priority, $prio, $p Message priority (1=min, 5=max)
  41. # $NTFY_TAGS $tags, $tag, $ta Message tags (comma separated list)
  42. # $NTFY_RAW $raw Raw JSON message
  43. #
  44. # Filters ('if:'):
  45. # You can filter 'message', 'title', 'priority' (comma-separated list, logical OR)
  46. # and 'tags' (comma-separated list, logical AND). See https://ntfy.sh/docs/subscribe/api/#filter-messages.
  47. #
  48. # subscribe: