this post was submitted on 29 Jan 2025
62 points (95.6% liked)

Selfhosted

61334 readers
204 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

Detailed Rules Post

  1. Be civil.

  2. No spam.

  3. Posts are to be related to self-hosting.

  4. Don't duplicate the full text of your blog or readme if you're providing a link.

  5. Submission headline should match the article title.

  6. No trolling.

  7. Promotion posts require active participation, with an account that is at least 30 days old. F/LOSS without a paywall has exceptions, with requirements. See the rules link for details. Tags [CBH] or [AIP] are required, see the links in Rule 8 for details.

  8. AI-related discussions and AI-involved promotional posts have additional requirements for tagging, as noted in Rule 7 and the AI & Promotional Post Expanded Rules post, and find example disclosures here.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 3 years ago
MODERATORS
top 13 comments
sorted by: hot top controversial new old
[–] peregus@lemmy.world 6 points 2 years ago (1 children)

How does it compare to NTFY?

[–] JustEnoughDucks@feddit.nl 5 points 2 years ago* (last edited 2 years ago) (1 children)

Different philosophy.

Ntfy uses pub-sub like MQTT. It publishes messages and anyone (with access) can subscribe to it. Want to connect 250 clients across 50 people to have the same messages delivered? Easy.

Gotify uses end to end messaging. A user creates an application on their chosen client. Gotify uses a REST api send the notification pulled from the chosen app to the user who made it. Want to do the same as above? You have to set it up 250 times. Gotify was the first to have authentication and some people say it is more robust, but I can't speak on that. Also gotify is easier to set up and makes sense for a single user.

Someone can correct me if I am wrong, but that is the biggest architectural difference.

[–] peregus@lemmy.world 1 points 2 years ago

Thanks you very much for your explanation!

[–] vext01@lemmy.sdf.org 3 points 2 years ago (2 children)

Interesting. Can you send messages with the web UI?

[–] magnus919@lemmy.brandyapple.com 1 points 2 years ago

Think of it more like a push notification server than a messaging platform. You would need a service that sends push notifications to Gotify topics. I get the sense that under the covers it works a lot like MQTT where you have apps publishing messages to topics, and you have consumers (in my case, iGotify app on iOS) that pull those messages off the topic and present them to the user as push notifications.

Though... I think I need a better iOS client than iGotify. It's not actually giving me any push notifications so it's missing the whole point for me.

[–] ikidd@lemmy.world 1 points 2 years ago

Probably something here that you can use like that:

https://github.com/gotify/contrib

[–] blackbarn@lemm.ee 1 points 2 years ago (1 children)

Been using this for a long time. Very reliable. Though postgres may be overkill for most. Default install uses sqlite.

I've got maybe 20 or so apps set up for various services and things. Quite useful!

[–] magnus919@lemmy.brandyapple.com 2 points 2 years ago

I guess I've just experienced too many times the pain of a sqlite database getting corrupted.

[–] beeng@discuss.tchncs.de 1 points 2 years ago (4 children)

What sort of notifications is this aimed at?

[–] vividspecter@lemm.ee 3 points 2 years ago

I use it with apprise and mailrise (email interface over apprise) typically. Apprise is basically a generic notification sender that can send push notifications to a bunch of different clients, including gotify.

So, things like Proxmox errors get set to a fake mailrise address -> apprise -> gotify. And a lot of Linux apps in general (especially older ones) only support email notifications, so this is quite useful. You can also use apprise directly, even as a commandline interface. So you can make scripts to notify you of problems in cases where there isn't already proper logging and notification support.

And I've setup diun to give me notifications for docker version updates. In this case, diun sends notifications to gotify directly.

[–] gaylord_fartmaster@lemmy.world 3 points 2 years ago

For anything. You can get a push notification for anything you can make run a script or send an http request.

[–] magnus919@lemmy.brandyapple.com 2 points 2 years ago

It's got an open API so really there's a lot more than my own use case.

I'm using it right now for getting notifications from flows in ActivePieces (I don't want to get spammy with my site, which is the link in the original post, but there's a how-to on getting that up and running also... ActivePieces is like a self-hosted Zapier)

[–] synestine@sh.itjust.works 1 points 2 years ago

It is designed for one user, multi-channel push notifications. Like Firebase Messaging but self-hosted. You can use Markdown when composing the messages and do about whatever you want.