adjustments for new github namespace/username

master
Thomas Maier 2020-01-26 20:19:22 +01:00
rodzic 852a8b61b4
commit 34d3730325
4 zmienionych plików z 5 dodań i 5 usunięć

Wyświetl plik

@ -8,7 +8,7 @@
- Grafana Webhook alerts - Grafana Webhook alerts
- Slack Incoming Webhooks (Feedback appreciated) - Slack Incoming Webhooks (Feedback appreciated)
Check https://github.com/opthomas-prime/xmpp-webhook/blob/master/parser/ to learn how to support more source services. Check https://github.com/tmsmr/xmpp-webhook/blob/master/parser/ to learn how to support more source services.
## Usage ## Usage
- `xmpp-webhook` is configured via environment variables: - `xmpp-webhook` is configured via environment variables:
@ -30,7 +30,7 @@ curl -X POST -d @slack-compatible-notification-example.json localhost:4321/slack
- Build image: `docker build -t xmpp-webhook .` - Build image: `docker build -t xmpp-webhook .`
- Run: `docker run -e "XMPP_ID=alerts@example.org" -e "XMPP_PASS=xxx" -e "XMPP_RECEIVERS=receiver1@example.org,receiver2@example.org" -p 4321:4321 -d --name xmpp-webhook xmpp-webhook` - Run: `docker run -e "XMPP_ID=alerts@example.org" -e "XMPP_PASS=xxx" -e "XMPP_RECEIVERS=receiver1@example.org,receiver2@example.org" -p 4321:4321 -d --name xmpp-webhook xmpp-webhook`
### Use prebuilt image from Docker Hub ### Use prebuilt image from Docker Hub
- Run: `docker run -e "XMPP_ID=alerts@example.org" -e "XMPP_PASS=xxx" -e "XMPP_RECEIVERS=receiver1@example.org,receiver2@example.org" -p 4321:4321 -d --name xmpp-webhook opthomasprime/xmpp-webhook:latest` - Run: `docker run -e "XMPP_ID=alerts@example.org" -e "XMPP_PASS=xxx" -e "XMPP_RECEIVERS=receiver1@example.org,receiver2@example.org" -p 4321:4321 -d --name xmpp-webhook tmsmr/xmpp-webhook:latest`
## Installation ## Installation
~~IMPORTANT NOTE: For the sake of simplicity, `xmpp-webhook` is not reconnecting to the XMPP server after a connection-loss. If you use the provided `xmpp-webhook.service` - Systemd will manage the reconnect by restarting the service.~~. ~~IMPORTANT NOTE: For the sake of simplicity, `xmpp-webhook` is not reconnecting to the XMPP server after a connection-loss. If you use the provided `xmpp-webhook.service` - Systemd will manage the reconnect by restarting the service.~~.

Wyświetl plik

@ -1,4 +1,4 @@
module github.com/opthomas-prime/xmpp-webhook/dev/xmpp-dev-stack/recipient module github.com/tmsmr/xmpp-webhook/dev/xmpp-dev-stack/recipient
go 1.13 go 1.13

2
go.mod
Wyświetl plik

@ -1,4 +1,4 @@
module github.com/opthomas-prime/xmpp-webhook module github.com/tmsmr/xmpp-webhook
require ( require (
golang.org/x/crypto v0.0.0-20191029031824-8986dd9e96cf // indirect golang.org/x/crypto v0.0.0-20191029031824-8986dd9e96cf // indirect

Wyświetl plik

@ -4,7 +4,7 @@ import (
"context" "context"
"crypto/tls" "crypto/tls"
"encoding/xml" "encoding/xml"
"github.com/opthomas-prime/xmpp-webhook/parser" "github.com/tmsmr/xmpp-webhook/parser"
"io" "io"
"log" "log"
"mellium.im/sasl" "mellium.im/sasl"