diff --git a/server/index.html b/server/index.html index dab03f14..ac650e18 100644 --- a/server/index.html +++ b/server/index.html @@ -36,6 +36,11 @@ It allows you to send notifications to your phone or desktop via scripts from any computer, entirely without signup or cost. It's also open source if you want to run your own.

+

+ There are many ways to use ntfy. You can send yourself messages for all sorts of things: When a long process finishes or fails (a backup, a long rsync job, ...), + or to notify yourself when somebody logs into your server(s). Or you may want to use it in your own app to distribute messages to subscribed clients. + Endless possibilities 😀. +

Publishing messages

@@ -130,6 +135,14 @@
This is a notification +

+ Here's an example of how to use this endpoint to send desktop notifications for every incoming message: +

+ + while read msg; do
+   [ -n "$msg" ] && notify-send "$msg"
+ done < <(stdbuf -i0 -o0 curl -s ntfy.sh/mytopic/raw) +

Message buffering and polling

@@ -179,8 +192,7 @@ In addition to caching messages locally and delivering them to long-polling subscribers, all messages are also published to Firebase Cloud Messaging (FCM) (if FirebaseKeyFile is set, which it is on ntfy.sh). This is to facilitate instant notifications on Android. I tried really, really hard to avoid using FCM, but newer - versions of Android made it impossible to implement background services>. - I'm sorry. + versions of Android made it impossible to implement background services.

Privacy policy

diff --git a/server/static/css/app.css b/server/static/css/app.css index 664bd438..709d8ebf 100644 --- a/server/static/css/app.css +++ b/server/static/css/app.css @@ -58,7 +58,7 @@ code { border-radius: 3px; margin-top: 10px; margin-bottom: 20px; - overflow-x: scroll; + overflow-x: auto; } /* Lato font (OFL), https://fonts.google.com/specimen/Lato#about, @@ -125,12 +125,6 @@ li { padding: 10px; } - #subscribeBox h3 { - margin-top: 0; - margin-bottom: 0; - font-size: 1.1em; - } - #subscribeBox #topicsHeader { margin-bottom: 0; } @@ -184,7 +178,7 @@ li { @media only screen and (min-width: 1600px) { #subscribeBox { position: fixed; - top: 180px; + top: 170px; right: 10px; width: 300px; border-left: 4px solid #3a9784;