mirror of
https://github.com/binwiederhier/ntfy.git
synced 2026-05-09 08:26:00 +02:00
[GH-ISSUE #1251] Ntfy sub not working with servers behind cloudflare. #883
Labels
No labels
ai-generated
android-app
android-app
android-app
🪲 bug
build
build
dependencies
docs
enhancement
enhancement
🔥 HOT
in-progress 🏃
ios
prio:low
prio:low
pull-request
question
🔒 security
server
server
unified-push
web-app
website
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ntfy#883
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @tpkowastaken on GitHub (Jan 5, 2025).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/1251
🐞 Describe the bug
Whenever running
ntfy sub https://my-own-ntfy-server.com/TOPICthe command stays idle and doesn't listen to any messages coming to this topic when the servers are routed through cloudflare tunnels. It gives a 524 after a while.💻 Components impacted
💡 Screenshots and/or logs
curl to the server
listening to websockets using wscat
🔮 Additional context
The server that is hosting ntfy is behind cloudflare tunnels because of my limited network. Cloudflare tunnels enforce using https therefore using http is not an option. Cloudflare supports wss as shown
Also the server and command is completely fine when connecting through my local network:
Curl looks the same on both
curl to the local server
@TheRedScreen64 commented on GitHub (Jan 27, 2025):
I'm having the same issue
@DanielOberlechner commented on GitHub (Jan 27, 2025):
I solved the issue with cloudflare my instance is now working.
Gotta check at home how I have configured it and will then post it here. Maybe a youtube video would also help ...
Networkchuck has a good tutorial on Youtube with NTFY which helped me quite further maybe it helps you people as well...
@mvnixon commented on GitHub (Feb 22, 2025):
What solved this issue?
@DanielOberlechner commented on GitHub (Feb 22, 2025):
@mvnixon I simply went almost completely by this video:
https://www.youtube.com/watch?v=poDIT2ruQ9M
If this won't work for you tell me once again and I will show in a quick youtube video my setup how I've it done....
I simply got it working by going by this video. The cloudflare ui on the website has changed (the video is 1 year old) but in the common ground it stays the same ...
@binwiederhier commented on GitHub (Jan 18, 2026):
This is not an issue with ntfy, but rather with your setup. We are always happy to provide support on Discord/Matrix.