client.yml 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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 username and password will be used with "ntfy publish" if no credentials are provided on command line
  7. # Default username and password will be used with "ntfy subscribe" if no credentials are provided in subscription below
  8. # For an empty password, use empty double-quotes ("")
  9. #
  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. #
  30. # Variables:
  31. # Variable Aliases Description
  32. # --------------- --------------------- -----------------------------------
  33. # $NTFY_ID $id Unique message ID
  34. # $NTFY_TIME $time Unix timestamp of the message delivery
  35. # $NTFY_TOPIC $topic Topic name
  36. # $NTFY_MESSAGE $message, $m Message body
  37. # $NTFY_TITLE $title, $t Message title
  38. # $NTFY_PRIORITY $priority, $prio, $p Message priority (1=min, 5=max)
  39. # $NTFY_TAGS $tags, $tag, $ta Message tags (comma separated list)
  40. # $NTFY_RAW $raw Raw JSON message
  41. #
  42. # Filters ('if:'):
  43. # You can filter 'message', 'title', 'priority' (comma-separated list, logical OR)
  44. # and 'tags' (comma-separated list, logical AND). See https://ntfy.sh/docs/subscribe/api/#filter-messages.
  45. #
  46. # subscribe: