Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. App Wishlist
  3. ntfy.sh : self-hostable notifications

ntfy.sh : self-hostable notifications

Scheduled Pinned Locked Moved Solved App Wishlist
40 Posts 12 Posters 11.4k Views 14 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • fbartelsF fbartels

    Notify.sh is indeed quite a cool project and has also seen good growth over the last few months.

    Depending on the use case I prefer to rely on third parties for checks/notifications. What good is a chat or email notification if my mail or chat server are down as well 😄

    Slightly more complicated curl, but this posts a message into a telegram message:

    curl https://api.telegram.org/bot$telegramApi/sendMessage -d chat_id=$telegramChat -d text="Backup successful 😀"
    
    robiR Offline
    robiR Offline
    robi
    wrote on last edited by
    #5

    @fbartels if you have multiple cloudrons you could have each monitor each other.

    alternatively you could reverse monitor a single one by having something elsewhere consume liveness messages/notifications so you know when they stop.

    Easier to just use one of the free monitoring services to check your services externally.

    Conscious tech

    1 Reply Last reply
    2
    • robiR robi

      @timconsidine Yeah, if you install our Server Monitor App, it also has that feature to send alerts via TG, Discord, etc..

      fbartelsF Offline
      fbartelsF Offline
      fbartels
      App Dev
      wrote on last edited by
      #6

      @robi said in ntfy.sh : self-hostable notifications:

      our Server Monitor App

      Which app is that exactly?

      @robi said in ntfy.sh : self-hostable notifications:

      each monitor each other.

      yeah, if you want to be serious about monitoring then it should run with a different provider and in a different region than the rest of your stack. Or even better pay someone else to host a geo distributed monitoring for you.

      For my own use case Uptime Kuma is quite sufficient and can also send notification via Telegram.

      robiR 1 Reply Last reply
      2
      • timconsidineT timconsidine

        https://ntfy.sh

        ntfy (pronounce: notify) is a simple HTTP-based pub-sub notification service. It allows you to send notifications to your phone or desktop via scripts from any computer, entirely without signup, cost or setup. It's also open source if you want to run your own.

        Really simple notifications for scripts, server status etc.

        curl -d "Backup successful 😀" ntfy.sh/mytopic

        If self-hosted, obviously change the ntfy.sh to your own domain.

        timconsidineT Offline
        timconsidineT Offline
        timconsidine
        App Dev
        wrote on last edited by
        #7

        I have made a first bash at packaging ntfy.sh for cloudron.

        Some issues remain but seems useable.
        Will be testing further.

        Available at https://git.cloudron.io/timconsidine/ntfy-for-cloudron

        timconsidineT girishG L 3 Replies Last reply
        7
        • timconsidineT timconsidine

          I have made a first bash at packaging ntfy.sh for cloudron.

          Some issues remain but seems useable.
          Will be testing further.

          Available at https://git.cloudron.io/timconsidine/ntfy-for-cloudron

          timconsidineT Offline
          timconsidineT Offline
          timconsidine
          App Dev
          wrote on last edited by timconsidine
          #8

          Use case example :
          To get a daily report on status of a VPS (non-cloudron), a bash script is run by cron :

          #!/bin/bash
          echo 'MyDocker' > /root/ntfy-msg.txt
          date >> /root/ntfy-msg.txt
          if [ -f /var/run/reboot-required ]; then
           cat /var/run/reboot-required >> /root/ntfy-msg.txt
          fi
          df -h / >> /root/ntfy-msg.txt
          docker container ls --format 'table {{.Status}}\t{{.Names}}' >> /root/ntfy-msg.txt
          curl ntfy.sh/xxxxxxx -T /root/ntfy-msg.txt
          

          which gives this :

          MyDocker
          Mon May 9 08:33:43 UTC 2022
          Filesystem Size Used Avail Use% Mounted on
          /dev/sda2 473G 32G 418G 7% /
          STATUS NAMES
          Up 2 days audiobookshelf
          Up 2 days penpot_penpot-postgres_1
          Up 2 days penpot_penpot-redis_1
          Up 2 days nitter
          Up 2 days nitter-redis
          Up 2 days (healthy) netdata
          Up 2 days budibase_proxy-service_1
          ..... etc,
          
          girishG 1 Reply Last reply
          4
          • timconsidineT timconsidine

            I have made a first bash at packaging ntfy.sh for cloudron.

            Some issues remain but seems useable.
            Will be testing further.

            Available at https://git.cloudron.io/timconsidine/ntfy-for-cloudron

            girishG Do not disturb
            girishG Do not disturb
            girish
            Staff
            wrote on last edited by
            #9

            @timconsidine you are on a roll, I will look into both your packages this week. Thanks!

            1 Reply Last reply
            1
            • timconsidineT timconsidine

              Use case example :
              To get a daily report on status of a VPS (non-cloudron), a bash script is run by cron :

              #!/bin/bash
              echo 'MyDocker' > /root/ntfy-msg.txt
              date >> /root/ntfy-msg.txt
              if [ -f /var/run/reboot-required ]; then
               cat /var/run/reboot-required >> /root/ntfy-msg.txt
              fi
              df -h / >> /root/ntfy-msg.txt
              docker container ls --format 'table {{.Status}}\t{{.Names}}' >> /root/ntfy-msg.txt
              curl ntfy.sh/xxxxxxx -T /root/ntfy-msg.txt
              

              which gives this :

              MyDocker
              Mon May 9 08:33:43 UTC 2022
              Filesystem Size Used Avail Use% Mounted on
              /dev/sda2 473G 32G 418G 7% /
              STATUS NAMES
              Up 2 days audiobookshelf
              Up 2 days penpot_penpot-postgres_1
              Up 2 days penpot_penpot-redis_1
              Up 2 days nitter
              Up 2 days nitter-redis
              Up 2 days (healthy) netdata
              Up 2 days budibase_proxy-service_1
              ..... etc,
              
              girishG Do not disturb
              girishG Do not disturb
              girish
              Staff
              wrote on last edited by girish
              #10

              @timconsidine do you think you can add a LICENSE file to both your repos? We just use MIT license for our other packages, but any open source license will do.

              timconsidineT ericdrgnE 3 Replies Last reply
              1
              • fbartelsF fbartels

                @robi said in ntfy.sh : self-hostable notifications:

                our Server Monitor App

                Which app is that exactly?

                @robi said in ntfy.sh : self-hostable notifications:

                each monitor each other.

                yeah, if you want to be serious about monitoring then it should run with a different provider and in a different region than the rest of your stack. Or even better pay someone else to host a geo distributed monitoring for you.

                For my own use case Uptime Kuma is quite sufficient and can also send notification via Telegram.

                robiR Offline
                robiR Offline
                robi
                wrote on last edited by
                #11

                @fbartels said in ntfy.sh : self-hostable notifications:

                Which app is that exactly?

                https://docs.cloudron.io/apps/php-server-monitor/

                Conscious tech

                1 Reply Last reply
                1
                • girishG girish

                  @timconsidine do you think you can add a LICENSE file to both your repos? We just use MIT license for our other packages, but any open source license will do.

                  timconsidineT Offline
                  timconsidineT Offline
                  timconsidine
                  App Dev
                  wrote on last edited by
                  #12

                  @girish yep sure thing, will do.

                  1 Reply Last reply
                  0
                  • timconsidineT timconsidine

                    I have made a first bash at packaging ntfy.sh for cloudron.

                    Some issues remain but seems useable.
                    Will be testing further.

                    Available at https://git.cloudron.io/timconsidine/ntfy-for-cloudron

                    L Offline
                    L Offline
                    LoudLemur
                    wrote on last edited by
                    #13

                    @timconsidine Thank you for your packaging efforts. You must be becoming better and better at it. I hope you become so good at it soon that it becomes a cinch for you to do most things!

                    timconsidineT 1 Reply Last reply
                    1
                    • L LoudLemur

                      @timconsidine Thank you for your packaging efforts. You must be becoming better and better at it. I hope you become so good at it soon that it becomes a cinch for you to do most things!

                      timconsidineT Offline
                      timconsidineT Offline
                      timconsidine
                      App Dev
                      wrote on last edited by
                      #14

                      @LoudLemur 👍 you're too kind. I'm an amateur, just doing the easy stuff, but learning. More productive than sudoku to ward off dementia 😄

                      1 Reply Last reply
                      1
                      • girishG girish

                        @timconsidine do you think you can add a LICENSE file to both your repos? We just use MIT license for our other packages, but any open source license will do.

                        timconsidineT Offline
                        timconsidineT Offline
                        timconsidine
                        App Dev
                        wrote on last edited by timconsidine
                        #15

                        @girish added LICENCE
                        I thought best to copy over the licences from the original author repo.
                        Wouldn't want to say anything different and offend them.
                        If that's not best approach, do say.

                        1 Reply Last reply
                        3
                        • T Offline
                          T Offline
                          thetomester13
                          App Dev
                          wrote on last edited by
                          #16

                          Came searching for ntfy.sh and was not disappointed! I've been keeping track of this project's progress with their updates on r/selfhosted and it looks like they just released the first version of the iOS app!

                          Is this image being kept up to date with releases? I think the server.yml file can be adjusted to automatically grab the CLOUDRON_APP_ORIGIN env variable so the user doesn't have to update it after install. Would love to see this published since it seems like it's already pretty close to the finish line. Let me know if I can help with getting this across!

                          timconsidineT 2 Replies Last reply
                          1
                          • T thetomester13

                            Came searching for ntfy.sh and was not disappointed! I've been keeping track of this project's progress with their updates on r/selfhosted and it looks like they just released the first version of the iOS app!

                            Is this image being kept up to date with releases? I think the server.yml file can be adjusted to automatically grab the CLOUDRON_APP_ORIGIN env variable so the user doesn't have to update it after install. Would love to see this published since it seems like it's already pretty close to the finish line. Let me know if I can help with getting this across!

                            timconsidineT Offline
                            timconsidineT Offline
                            timconsidine
                            App Dev
                            wrote on last edited by timconsidine
                            #17

                            @thetomester13 : I haven't kept it up to date, but I will do so in my repo.

                            Good news on the iOS app - will check it out

                            EDIT : Just checked my self-package repo and I see that it just runs apt install ntfy into the base container.
                            So for fresh installs you get the latest deployed apt package.

                            For updates of previously deployed instances, I am not sure. Will try and learn.

                            1 Reply Last reply
                            2
                            • T thetomester13

                              Came searching for ntfy.sh and was not disappointed! I've been keeping track of this project's progress with their updates on r/selfhosted and it looks like they just released the first version of the iOS app!

                              Is this image being kept up to date with releases? I think the server.yml file can be adjusted to automatically grab the CLOUDRON_APP_ORIGIN env variable so the user doesn't have to update it after install. Would love to see this published since it seems like it's already pretty close to the finish line. Let me know if I can help with getting this across!

                              timconsidineT Offline
                              timconsidineT Offline
                              timconsidine
                              App Dev
                              wrote on last edited by
                              #18

                              @thetomester13 good point on the base_url

                              Feel free to do a proper packaging.
                              Mine was a bit of a hack for my own purposes.

                              Would be great to see a proper version in the App Store.
                              It's so just darned useful.
                              I get morning reports from a variety of servers and machines. and also enquiries to things like Hetzner Storage Box, Scaleway and Wasabi so I can monitor status in 5 mins over a coffee.

                              1 Reply Last reply
                              7
                              • ericdrgnE Offline
                                ericdrgnE Offline
                                ericdrgn
                                wrote on last edited by
                                #19

                                Would be excited to see this in the cloudron store proper myself! Thanks for all the work on it @timconsidine, good enough for now 🙂

                                1 Reply Last reply
                                4
                                • ericdrgnE Offline
                                  ericdrgnE Offline
                                  ericdrgn
                                  wrote on last edited by
                                  #20

                                  For anyone wondering it makes a great notification backend (on Android at least as that was all I tested) in coordination with self hosted matrix/element. The Android app has an option to use it as the backend, it doesn't change anything functionally about notifications but it does keep from using FCM which is the best part imo.

                                  jdaviescoatesJ 1 Reply Last reply
                                  2
                                  • ericdrgnE ericdrgn

                                    For anyone wondering it makes a great notification backend (on Android at least as that was all I tested) in coordination with self hosted matrix/element. The Android app has an option to use it as the backend, it doesn't change anything functionally about notifications but it does keep from using FCM which is the best part imo.

                                    jdaviescoatesJ Offline
                                    jdaviescoatesJ Offline
                                    jdaviescoates
                                    wrote on last edited by
                                    #21

                                    @ericdrgn said in ntfy.sh : self-hostable notifications:

                                    it doesn't change anything functionally about notifications but it does keep from using FCM which is the best part imo.

                                    Firebase Cloud Messaging?

                                    I use Cloudron with Gandi & Hetzner

                                    ericdrgnE 2 Replies Last reply
                                    0
                                    • girishG girish

                                      @timconsidine do you think you can add a LICENSE file to both your repos? We just use MIT license for our other packages, but any open source license will do.

                                      ericdrgnE Offline
                                      ericdrgnE Offline
                                      ericdrgn
                                      wrote on last edited by
                                      #22

                                      @girish any chance you had a chance to take a look at this to get an official package of it going? Just checking in, know you all have a lot going on these days.

                                      1 Reply Last reply
                                      1
                                      • jdaviescoatesJ jdaviescoates

                                        @ericdrgn said in ntfy.sh : self-hostable notifications:

                                        it doesn't change anything functionally about notifications but it does keep from using FCM which is the best part imo.

                                        Firebase Cloud Messaging?

                                        ericdrgnE Offline
                                        ericdrgnE Offline
                                        ericdrgn
                                        wrote on last edited by
                                        #23
                                        This post is deleted!
                                        1 Reply Last reply
                                        0
                                        • jdaviescoatesJ jdaviescoates

                                          @ericdrgn said in ntfy.sh : self-hostable notifications:

                                          it doesn't change anything functionally about notifications but it does keep from using FCM which is the best part imo.

                                          Firebase Cloud Messaging?

                                          ericdrgnE Offline
                                          ericdrgnE Offline
                                          ericdrgn
                                          wrote on last edited by
                                          #24

                                          @jdaviescoates said in ntfy.sh : self-hostable notifications:

                                          @ericdrgn said in ntfy.sh : self-hostable notifications:

                                          it doesn't change anything functionally about notifications but it does keep from using FCM which is the best part imo.

                                          Firebase Cloud Messaging?

                                          yes

                                          1 Reply Last reply
                                          1
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • Bookmarks
                                          • Search