2021-12-18 20:43:27 +01:00
|
|
|
# ntfy client config file
|
|
|
|
|
|
|
|
# Base URL used to expand short topic names in the "ntfy publish" and "ntfy subscribe" commands.
|
|
|
|
# If you self-host a ntfy server, you'll likely want to change this.
|
|
|
|
#
|
|
|
|
# default-host: https://ntfy.sh
|
|
|
|
|
2022-10-09 16:34:23 +02:00
|
|
|
# Default username and password will be used with "ntfy publish" if no credentials are provided on command line
|
|
|
|
# Default username and password will be used with "ntfy subscribe" if no credentials are provided in subscription below
|
|
|
|
# For an empty password, use empty double-quotes ("")
|
2022-08-01 00:46:56 +02:00
|
|
|
#
|
|
|
|
# default-user:
|
|
|
|
# default-password:
|
2022-10-09 16:34:23 +02:00
|
|
|
|
|
|
|
# Default command will execute after "ntfy subscribe" receives a message if no command is provided in subscription below
|
2022-08-01 00:46:56 +02:00
|
|
|
# default-command:
|
|
|
|
|
2021-12-21 02:46:51 +01:00
|
|
|
# Subscriptions to topics and their actions. This option is primarily used by the systemd service,
|
|
|
|
# or if you cann "ntfy subscribe --from-config" directly.
|
2021-12-18 20:43:27 +01:00
|
|
|
#
|
2021-12-21 02:46:51 +01:00
|
|
|
# Example:
|
|
|
|
# subscribe:
|
|
|
|
# - topic: mytopic
|
|
|
|
# command: /usr/local/bin/mytopic-triggered.sh
|
|
|
|
# - topic: myserver.com/anothertopic
|
|
|
|
# command: 'echo "$message"'
|
2021-12-22 13:46:17 +01:00
|
|
|
# if:
|
|
|
|
# priority: high,urgent
|
2022-02-17 19:16:01 +01:00
|
|
|
# - topic: secret
|
|
|
|
# command: 'notify-send "$m"'
|
|
|
|
# user: phill
|
|
|
|
# password: mypass
|
2021-12-21 02:46:51 +01:00
|
|
|
#
|
|
|
|
# Variables:
|
2021-12-23 00:16:28 +01:00
|
|
|
# Variable Aliases Description
|
|
|
|
# --------------- --------------------- -----------------------------------
|
|
|
|
# $NTFY_ID $id Unique message ID
|
|
|
|
# $NTFY_TIME $time Unix timestamp of the message delivery
|
|
|
|
# $NTFY_TOPIC $topic Topic name
|
|
|
|
# $NTFY_MESSAGE $message, $m Message body
|
|
|
|
# $NTFY_TITLE $title, $t Message title
|
|
|
|
# $NTFY_PRIORITY $priority, $prio, $p Message priority (1=min, 5=max)
|
|
|
|
# $NTFY_TAGS $tags, $tag, $ta Message tags (comma separated list)
|
|
|
|
# $NTFY_RAW $raw Raw JSON message
|
2021-12-18 20:43:27 +01:00
|
|
|
#
|
2021-12-22 13:46:17 +01:00
|
|
|
# Filters ('if:'):
|
|
|
|
# You can filter 'message', 'title', 'priority' (comma-separated list, logical OR)
|
|
|
|
# and 'tags' (comma-separated list, logical AND). See https://ntfy.sh/docs/subscribe/api/#filter-messages.
|
|
|
|
#
|
2021-12-18 20:43:27 +01:00
|
|
|
# subscribe:
|