mirror of
https://github.com/binwiederhier/ntfy.git
synced 2026-05-15 07:35:49 -06:00
[GH-ISSUE #740] Rate limiting for upstream push notifications #540
Labels
No labels
ai-generated
android-app
android-app
android-app
build
build
dependencies
docs
enhancement
enhancement
in-progress 🏃
ios
prio:low
prio:low
pull-request
question
server
server
unified-push
web-app
website
🔒 security
🔥 HOT
🪲 bug
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/ntfy#540
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 @nimbleghost on GitHub (May 23, 2023).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/740
❓ Question
How is the upstream push notification request limit calculated? I see a message like this for every publish, but it doesn't look like the limit is being hit in the log nevertheless:
I had an Uptime Kuma check making sure that publish was working, so publishing about once a minute - but that shouldn't hit the rate limits in general, I believe?
@binwiederhier commented on GitHub (May 23, 2023):
Once a minute is too much for the upstream server (ntfy sh). The current rate limits for the free plan is 250/day, and there are 1440 minutes in a day.
You can purchase a ntfy Pro plan and set up
upstream-access-tokenif you need more. Or you can compile and set up the iOS app yourself, of course.@nimbleghost commented on GitHub (May 23, 2023):
Oh I see, thanks. Am I reading the logs incorrectly? If not - would it be possible to make it clearer that it's hitting this 250/day limit? (Is that based on publisher and not subscriber/visitor?).
@binwiederhier commented on GitHub (May 23, 2023):
This error happens when your selfhosted ntfy server send a "poll request" to the upstream server (ntfy.sh). So your rate limits are not affected, but the upstream rate limits are exceeded.
You are right, I should make it clearer. I'll update the error message to make it clearer.
@binwiederhier commented on GitHub (May 23, 2023):
I added
da06ae4485. Closing this now. Feel free to continue the discussion though