[GH-ISSUE #1136] Make it easier to generate & load VAPID keys from files #802

Closed
opened 2026-05-07 00:27:41 +02:00 by BreizhHardware · 1 comment

Originally created by @nogweii on GitHub (Jun 21, 2024).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/1136

💡 Idea
Two parts of this idea:

  1. Add a CLI parameter added to webpush keys to not print the generated keys but write a file that contains the public & private key components. (JSON? YAML?)
  2. Add a new parameter to serve to be able to read the file instead of needing to pass it literally.

💻 Target components
The server

Originally created by @nogweii on GitHub (Jun 21, 2024). Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/1136 :bulb: **Idea** Two parts of this idea: 1. Add a CLI parameter added to `webpush keys` to not print the generated keys but write a file that contains the public & private key components. (JSON? YAML?) 2. Add a new parameter to `serve` to be able to read the file instead of needing to pass it literally. :computer: **Target components** The server
BreizhHardware 2026-05-07 00:27:41 +02:00
Author
Owner

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

This is a dup of https://github.com/binwiederhier/ntfy/issues/1492 and https://github.com/binwiederhier/ntfy/issues/1255 (related).

You can put the webpush keys in the server.yml file or in env variables. No need to pass them via --serve. You can scope the server.yml file permissions appropriately.

<!-- gh-comment-id:3831356903 --> @binwiederhier commented on GitHub (Feb 1, 2026): This is a dup of https://github.com/binwiederhier/ntfy/issues/1492 and https://github.com/binwiederhier/ntfy/issues/1255 (related). You can put the webpush keys in the server.yml file or in env variables. No need to pass them via --serve. You can scope the server.yml file permissions appropriately.
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#802
No description provided.