From 686f89f75df1e12b8fdb96e001ba0203c1231169 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mike=20Schw=C3=B6rer?= Date: Sun, 18 Jun 2023 02:22:29 +0200 Subject: [PATCH] change URL to simplecloudnotifier.de --- scnserver/api/router.go | 2 +- scnserver/swagger/swagger.json | 2 +- scnserver/swagger/swagger.yaml | 2 +- scnserver/website/scn_send.html | 10 +++++----- scnserver/website/scn_send.sh.txt | 10 +++++----- 5 files changed, 13 insertions(+), 13 deletions(-) diff --git a/scnserver/api/router.go b/scnserver/api/router.go index 349b4b8..29a590a 100644 --- a/scnserver/api/router.go +++ b/scnserver/api/router.go @@ -40,7 +40,7 @@ func NewRouter(app *logic.Application) *Router { // @title SimpleCloudNotifier API // @version 2.0 // @description API for SCN -// @host scn.blackforestbytes.com +// @host simplecloudnotifier.de // // @tag.name External // @tag.name API-v1 diff --git a/scnserver/swagger/swagger.json b/scnserver/swagger/swagger.json index 8faadf1..987dd92 100644 --- a/scnserver/swagger/swagger.json +++ b/scnserver/swagger/swagger.json @@ -6,7 +6,7 @@ "contact": {}, "version": "2.0" }, - "host": "scn.blackforestbytes.com", + "host": "simplecloudnotifier.de", "basePath": "/", "paths": { "/": { diff --git a/scnserver/swagger/swagger.yaml b/scnserver/swagger/swagger.yaml index 0eb5337..ee8998c 100644 --- a/scnserver/swagger/swagger.yaml +++ b/scnserver/swagger/swagger.yaml @@ -681,7 +681,7 @@ definitions: username: type: string type: object -host: scn.blackforestbytes.com +host: simplecloudnotifier.de info: contact: {} description: API for SCN diff --git a/scnserver/website/scn_send.html b/scnserver/website/scn_send.html index 81e2913..a67e9ea 100644 --- a/scnserver/website/scn_send.html +++ b/scnserver/website/scn_send.html @@ -1,8 +1,8 @@
#!/usr/bin/env bash
 
 #
-# Wrapper around SCN ( https://scn.blackforestbytes.com/ )
-# ========================================================
+# Wrapper around SCN ( https://simplecloudnotifier.de/ )
+# ======================================================
 #
 # ./scn_send [@channel] title [content] [priority]
 #
@@ -51,9 +51,9 @@ usage() {
 fi
 
 if [[ "${args[0]}" =~ ^@.* ]]; then
-	channel="${args[0]}"
+    channel="${args[0]}"
     unset "args[0]"
-	channel="${channel:1}"
+    channel="${channel:1}"
 fi
 
 if [ ${#args[@]} -lt 1 ]; then
@@ -98,7 +98,7 @@ usage() {
                     --data "msg_id=$usr_msg_id"          \
                     --data "channel=$channel"            \
                     --data "sender_name=$sender"         \
-                    "https://scn.blackforestbytes.com/"  )
+                    "https://simplecloudnotifier.de/"    )
 
     curlout="$(cat "$outf")"
     rm "$outf"
diff --git a/scnserver/website/scn_send.sh.txt b/scnserver/website/scn_send.sh.txt
index bd03dbe..fec86f7 100644
--- a/scnserver/website/scn_send.sh.txt
+++ b/scnserver/website/scn_send.sh.txt
@@ -1,8 +1,8 @@
 #!/usr/bin/env bash
 
 #
-# Wrapper around SCN ( https://scn.blackforestbytes.com/ )
-# ========================================================
+# Wrapper around SCN ( https://simplecloudnotifier.de/ )
+# ======================================================
 #
 # ./scn_send [@channel] title [content] [priority]
 #
@@ -51,9 +51,9 @@ if [ ${#args[@]} -lt 1 ]; then
 fi
 
 if [[ "${args[0]}" =~ ^@.* ]]; then
-	channel="${args[0]}"
+    channel="${args[0]}"
     unset "args[0]"
-	channel="${channel:1}"
+    channel="${channel:1}"
 fi
 
 if [ ${#args[@]} -lt 1 ]; then
@@ -98,7 +98,7 @@ while true ; do
                     --data "msg_id=$usr_msg_id"          \
                     --data "channel=$channel"            \
                     --data "sender_name=$sender"         \
-                    "https://scn.blackforestbytes.com/"  )
+                    "https://simplecloudnotifier.de/"    )
 
     curlout="$(cat "$outf")"
     rm "$outf"