mirror of https://github.com/statping/statping
gotify notifier updates
parent
e2b2c732c6
commit
1d3d0ce252
|
@ -136,6 +136,8 @@ jobs:
|
|||
TWILIO_FROM: ${{ secrets.TWILIO_FROM }}
|
||||
TWILIO_TO: ${{ secrets.TWILIO_TO }}
|
||||
TEST_EMAIL: ${{ secrets.TEST_EMAIL }}
|
||||
GOTIFY_URL: ${{ secrets.GOTIFY_URL }}
|
||||
GOTIFY_TOKEN: ${{ secrets.GOTIFY_TOKEN }}
|
||||
|
||||
- name: Coveralls Testing Coverage
|
||||
run: |
|
||||
|
|
|
@ -136,6 +136,8 @@ jobs:
|
|||
TWILIO_FROM: ${{ secrets.TWILIO_FROM }}
|
||||
TWILIO_TO: ${{ secrets.TWILIO_TO }}
|
||||
TEST_EMAIL: ${{ secrets.TEST_EMAIL }}
|
||||
GOTIFY_URL: ${{ secrets.GOTIFY_URL }}
|
||||
GOTIFY_TOKEN: ${{ secrets.GOTIFY_TOKEN }}
|
||||
|
||||
- name: Coveralls Testing Coverage
|
||||
run: |
|
||||
|
|
|
@ -24,7 +24,6 @@ func (g *gotify) Select() *notifications.Notification {
|
|||
var Gotify = &gotify{¬ifications.Notification{
|
||||
Method: "gotify",
|
||||
Title: "Gotify",
|
||||
Host: "https://gotify.myserver.com",
|
||||
Description: "Use Gotify to receive push notifications. Add your Gotify URL and App Token to receive notifications.",
|
||||
Author: "Hugo van Rijswijk",
|
||||
AuthorUrl: "https://github.com/hugo-vrijswijk",
|
||||
|
@ -35,17 +34,19 @@ var Gotify = &gotify{¬ifications.Notification{
|
|||
FailureData: `{"title": "{{.Service.Name}}", "message": "Your service '{{.Service.Name}}' is currently failing! Reason: {{.Failure.Issue}}", "priority": 5}`,
|
||||
DataType: "json",
|
||||
Form: []notifications.NotificationForm{{
|
||||
Type: "text",
|
||||
Title: "Gotify URL",
|
||||
SmallText: "Gotify server URL, including http(s):// and port if needed",
|
||||
DbField: "Host",
|
||||
Required: true,
|
||||
Type: "text",
|
||||
Title: "Gotify URL",
|
||||
SmallText: "Gotify server URL, including http(s):// and port if needed",
|
||||
DbField: "Host",
|
||||
Placeholder: "https://gotify.domain.com",
|
||||
Required: true,
|
||||
}, {
|
||||
Type: "text",
|
||||
Title: "App Token",
|
||||
SmallText: "The Application Token generated by Gotify",
|
||||
DbField: "api_key",
|
||||
Required: true,
|
||||
Type: "text",
|
||||
Title: "App Token",
|
||||
SmallText: "The Application Token generated by Gotify",
|
||||
DbField: "api_key",
|
||||
Placeholder: "TB5gatYYyR.FCD2",
|
||||
Required: true,
|
||||
}}},
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue