mirror of
https://github.com/binwiederhier/ntfy.git
synced 2026-05-09 16:35:53 +02:00
[GH-ISSUE #1288] Settings are ignored NTFY_KEEPALIVE_INTERVAL #910
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#910
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 @gUstrx on GitHub (Mar 9, 2025).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/1288
Docker server self-hosting
Settings are ignored
Instead of 45s, keepalive sends packets every 10-15s by default.
If you set
environment:
NTFY_KEEPALIVE_INTERVAL: 60s
it still sends packets 10-15s
this is visible in the router connection tracker
What kind of energy saving can we talk about?
How can I make it send packets according to the settings?
@hastyeagle commented on GitHub (Jan 31, 2026):
I'm seeing the same thing on v2.15.0. It's pinging every 15s even when I have
keepalive-interval: "45s"set in server.yaml.@binwiederhier commented on GitHub (Feb 1, 2026):
I tested
export NTFY_KEEPALIVE_INTERVAL=5sandkeepalive-interval: 5sin the server.yml, and both work as intended. I do not modify or control any of the underlying TCP connections.@hastyeagle commented on GitHub (Feb 1, 2026):
5s works for me too, but anything over 15s doesn't work (it uses 15s no matter if I have it set to 30s or 45s, etc.). It seems like 15s is the max keep-alive.
@binwiederhier commented on GitHub (Feb 1, 2026):
I am not entirely sure what you are doing wrong, but it works for me. It's worth noting that you referenced the
server.yaml(< wrong) file, but it has to beserver.yml(no "a").