ntfy.sh username and password (OD-2056)
Andreas Wachter opened 1 year ago

how can I add username and password for a selfhosted ntfy.sh instance?

  • Robin Shen commented 1 year ago

    Never tested with selfhosted ntfy.sh. Is the webhook url enough for authentication? It contains some secret info at least for cloud version.

  • Andreas Wachter commented 1 year ago

    I tried to add username and password to the url but that didn't work. If you have authentication enabled for ntfy.sh it is just a basic authentication.

    The curl example works fine to send notifications.

    curl -u user:password -d "Backup successful 😀" myinstance.whatever/mytopic
    
  • Robin Shen commented 1 year ago

    You may test with cloud ntfy.sh to see how to generate an authentication url. I guess self-hosted version will have same thing.

  • Andreas Wachter commented 1 year ago

    perfect, got it working now. Thanks

  • Andreas Wachter changed state to 'Closed' 1 year ago
    Previous Value Current Value
    Open
    Closed
issue 1/1
Type
Question
Priority
Normal
Assignee
Labels
No labels
Issue Votes (0)
Watchers (2)
Reference
OD-2056
Please wait...
Connection lost or session expired, reload to recover
Page is in error, reload to recover