Skip to content

Create a self-hosted instance of NTFY

Moved Guides
63 4 34.8k 1
  • Alright, I’ve killed the process and could do ntfy serve again. Thanks!

    wrote on last edited by
    #45

    @dave1904 good. Thanks

  • wrote on last edited by
    #46

    I can’t get this to work for my iOS buddy. He receives the notification messages in ntfy but doesn’t get any notification on iOS. I’ve tried upstream-base-url: "https://ntfy.sh" but no luck. @phenomlab do you have an iOS device?

  • Alright, I’ve killed the process and could do ntfy serve again. Thanks!

    wrote on last edited by
    #47

    @dave1904 said in Create a self-hosted instance of NTFY:

    Alright, I’ve killed the process and could do ntfy serve again. Thanks!

    Is better to run as a service rather than a daemon.

  • @dave1904 said in Create a self-hosted instance of NTFY:

    Alright, I’ve killed the process and could do ntfy serve again. Thanks!

    Is better to run as a service rather than a daemon.

    wrote on last edited by
    #48

    @phenomlab said in Create a self-hosted instance of NTFY:

    @dave1904 said in Create a self-hosted instance of NTFY:

    Alright, I’ve killed the process and could do ntfy serve again. Thanks!

    Is better to run as a service rather than a daemon.

    you are right. Next config change I have to search for the pid again.

  • I can’t get this to work for my iOS buddy. He receives the notification messages in ntfy but doesn’t get any notification on iOS. I’ve tried upstream-base-url: "https://ntfy.sh" but no luck. @phenomlab do you have an iOS device?

    wrote on last edited by
    #49

    @dave1904 there won’t be any notification in iOS unless you refresh. This is a known issue - see below

    https://docs.ntfy.sh/known-issues/

  • wrote on last edited by
    #50

    I hate iOS.

  • I hate iOS.

    wrote on last edited by
    #51

    @dave1904 as do I.

  • wrote on last edited by dave1904
    #52

    We got this working. I’m not sure if it was on my buddys end.

    Here the steps:

    1. Add new sub in ntfy app with the private ID and using another server (ntfy.mydomain.com)
    2. In settings also use the ntfy url as default Server
    3. add the upstream-base-url: “https://ntfy.sh” property in server.yaml and restart ntfy
  • We got this working. I’m not sure if it was on my buddys end.

    Here the steps:

    1. Add new sub in ntfy app with the private ID and using another server (ntfy.mydomain.com)
    2. In settings also use the ntfy url as default Server
    3. add the upstream-base-url: “https://ntfy.sh” property in server.yaml and restart ntfy
    wrote on last edited by
    #53

    @dave1904 Thanks for this - good find. I have to admit, I’ve not tested with an iPhone, and all of my development has been with Android.

  • wrote on last edited by
    #54

    @phenomlab Same here but unfortunately we have a lot of iOS users on our forum. So before announcing I wanted to make sure it’s working for Desktop, Android and iOS.

  • @phenomlab Same here but unfortunately we have a lot of iOS users on our forum. So before announcing I wanted to make sure it’s working for Desktop, Android and iOS.

    wrote on last edited by
    #55

    @dave1904 A very wise choice!

  • wrote on last edited by
    #56

    hey @phenomlab sorry for bothering you again. I’ve tried to start ntfy as a service as you recommended. But now I don’t receive any more push notifications. Do I have to make ntfy “serve” like a service too?

  • wrote on last edited by
    #57

    In the docs I found this:

    ntfy serve (or systemctl start ntfy when using the deb/rpm)

    isn’t this the same as sudo service ntfy start?

  • In the docs I found this:

    ntfy serve (or systemctl start ntfy when using the deb/rpm)

    isn’t this the same as sudo service ntfy start?

    wrote on last edited by
    #58

    @dave1904 said in Create a self-hosted instance of NTFY:

    isn’t this the same as sudo service ntfy start?

    Yes, it is. I have mine running the same way.

  • wrote on last edited by dave1904
    #59

    Yes is definitley running:

    ntfy       20401  0.0  2.6 1200936 26232 ?       Ssl  15:33   0:00 /usr/bin/ntfy serve --no-log-dates
    root       20470  0.0  0.0   8160   720 pts/1    S+   15:40   0:00 grep --color=auto ntfy
    

    Any idea why it’s only working for me with ntfy serve?

    edit: now I get the notifications. don’t know why but it took some time 🙂 running as a service now 👍

  • Yes is definitley running:

    ntfy       20401  0.0  2.6 1200936 26232 ?       Ssl  15:33   0:00 /usr/bin/ntfy serve --no-log-dates
    root       20470  0.0  0.0   8160   720 pts/1    S+   15:40   0:00 grep --color=auto ntfy
    

    Any idea why it’s only working for me with ntfy serve?

    edit: now I get the notifications. don’t know why but it took some time 🙂 running as a service now 👍

    wrote on last edited by
    #60

    @dave1904 Yes, I’ve seen this myself. Not great when you think there is an issue with your install!

  • We got this working. I’m not sure if it was on my buddys end.

    Here the steps:

    1. Add new sub in ntfy app with the private ID and using another server (ntfy.mydomain.com)
    2. In settings also use the ntfy url as default Server
    3. add the upstream-base-url: “https://ntfy.sh” property in server.yaml and restart ntfy
    wrote on last edited by
    #61

    @dave1904 said in Create a self-hosted instance of NTFY:

    We got this working. I’m not sure if it was on my buddys end.

    Here the steps:

    1. Add new sub in ntfy app with the private ID and using another server (ntfy.mydomain.com)
    2. In settings also use the ntfy url as default Server
    3. add the upstream-base-url: “https://ntfy.sh” property in server.yaml and restart ntfy

    thanks for the update! 👍

  • We got this working. I’m not sure if it was on my buddys end.

    Here the steps:

    1. Add new sub in ntfy app with the private ID and using another server (ntfy.mydomain.com)
    2. In settings also use the ntfy url as default Server
    3. add the upstream-base-url: “https://ntfy.sh” property in server.yaml and restart ntfy
    wrote on last edited by
    #62

    @dave1904
    Hi
    Thanks for your explanations.
    I tried this settings but still doesn’t work. I always have to slide down to see new messages.
    Does anybody have the same trouble or a solution ?
    Thank you

  • @dave1904
    Hi
    Thanks for your explanations.
    I tried this settings but still doesn’t work. I always have to slide down to see new messages.
    Does anybody have the same trouble or a solution ?
    Thank you

    wrote on last edited by
    #63

    @sebmegag hi. Welcome aboard! I’ve tried this on both iPhone and Android and it works fine. Did you double check the config you have?


Related Topics