From 913189b78e6cfeb80219efc861c16a545f7d3991 Mon Sep 17 00:00:00 2001 From: Chris Caron Date: Mon, 27 Jul 2020 11:18:18 -0400 Subject: [PATCH] Updated Notify_gotify (markdown) --- Notify_gotify.md | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/Notify_gotify.md b/Notify_gotify.md index 8f41a45..545db44 100644 --- a/Notify_gotify.md +++ b/Notify_gotify.md @@ -6,10 +6,12 @@ ### Syntax Valid syntaxes are as follows: -* **gotify**://**{hostname}**/**{token}** -* **gotifys**://**{hostname}**/**{token}** -* **gotifys**://**{hostname}**:**{port}**/**{token}** -* **gotifys**://**{hostname}**/**{token}**/?**priority=high** +* `gotify://{hostname}/{token}` +* `gotifys://{hostname}/{token}` +* `gotifys://{hostname}:{port}/{token}` +* `gotifys://{hostname}/{path}/{token}` +* `gotifys://{hostname}:{port}/{path}/{token}` +* `gotifys://{hostname}/{token}/?priority=high` Secure connections (via https) should be referenced using **gotifys://** where as insecure connections (via http) should be referenced via **gotify://**. @@ -19,6 +21,7 @@ Secure connections (via https) should be referenced using **gotifys://** where a | hostname | Yes | The Rocket.Chat server you're sending your notification to. | token | Yes | The Application Token you generated on your Gotify Server | port | No | The port the Gotify server is listening on. By default the port is **80** for **gotify://** and **443** for all **gotifys://** references. +| path | No | For those that host their Gotify server on a hostname that requires you to specify an additional path prefix may just include this as part of their URL string (the default is '**/**'). What is important here is the final entry of your URL must still be the _token_. | priority | No | The priority level to pass the message along as. Possible values are **low**, **moderate**, **normal**, and **high**. If no priority is specified then **normal** is used. #### Example @@ -26,7 +29,16 @@ Send a Gotify message: ```bash # Assuming our {hostname} is localhost # Assuming our {token} is abcdefghijklmn -apprise gotify://gotify.server.local/abcdefghijklmn +apprise -t "Test Message Title" -b "Test Message Body" \ + gotify://gotify.server.local/abcdefghijklmn + +# If your server is being hosted elsewhere and requires you to specify an +# additional path to get to it, you can notify it as follows: +# Assuming our {hostname} is localhost +# Assuming our {token} is abcdefghijklmn +# Assuming our {path} is /my/gotify/path/ +apprise -t "Test Message Title" -b "Test Message Body" \ + gotify://gotify.server.local/my/gotify/path/abcdefghijklmn ``` ## Setup