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