[GH-ISSUE #1255] Automating Web Push Key Generation #888

Closed
opened 2026-05-07 00:28:28 +02:00 by BreizhHardware · 2 comments

Originally created by @goldstar611 on GitHub (Jan 9, 2025).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/1255

github.com/binwiederhier/ntfy@630f2957de/cmd/webpush_test.go (L14)

I thought about automating web push key generation in a simple manner like

ntfy webpush keys >> server.yml

but then I realized that the keys are written to stderr and not stdout!

Question:

  • Are you open to moving the output from stderr to stdout?
Originally created by @goldstar611 on GitHub (Jan 9, 2025). Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/1255 https://github.com/binwiederhier/ntfy/blob/630f2957deb670dcacfe0a338091d7561f176b9c/cmd/webpush_test.go#L14 I thought about automating web push key generation in a simple manner like ```bash ntfy webpush keys >> server.yml ``` but then I realized that the keys are written to stderr and not stdout! Question: - Are you open to moving the output from stderr to stdout?
Author
Owner

@wunter8 commented on GitHub (Jan 10, 2025):

I'm not sure about moving it, but in the meantime, you can do ntfy webpush keys 2>> server.yml to append stderr to server.yml.

You'll still need to edit the file and adjust the web push email and path config options, though

<!-- gh-comment-id:2581551613 --> @wunter8 commented on GitHub (Jan 10, 2025): I'm not sure about moving it, but in the meantime, you can do `ntfy webpush keys 2>> server.yml` to append stderr to server.yml. You'll still need to edit the file and adjust the web push email and path config options, though
Author
Owner

@binwiederhier commented on GitHub (Feb 1, 2026):

There are lots of things you need to configure when setting up ntfy, so configuring only the web push keys automatically doesn't make sense. Most people will not need/want web push anyway.

<!-- gh-comment-id:3831349606 --> @binwiederhier commented on GitHub (Feb 1, 2026): There are lots of things you need to configure when setting up ntfy, so configuring only the web push keys automatically doesn't make sense. Most people will not need/want web push anyway.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ntfy#888
No description provided.