mirror of
https://github.com/binwiederhier/ntfy.git
synced 2026-05-09 16:35:53 +02:00
[PR #1138] [MERGED] Teach ntfy webpush to write the keys to a file #1521
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#1521
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?
📋 Pull Request Information
Original PR: https://github.com/binwiederhier/ntfy/pull/1138
Author: @nogweii
Created: 6/26/2024
Status: ✅ Merged
Merged: 5/22/2025
Merged by: @binwiederhier
Base:
main← Head:webpush-key-file📝 Commits (3)
49a5482teachntfy webpushto write the keys to a file20cca8eupdate go.sum9ce6b03Merge branch 'main' into webpush-key-file📊 Changes
3 files changed (+30 additions, -1 deletions)
View changed files
📝
.gitignore(+1 -0)📝
cmd/webpush.go(+22 -1)📝
cmd/webpush_test.go(+7 -0)📄 Description
This does half of #1136. With just this, I can write some ansible code to read the created file and copy the values into the main config. A bit redundant, perhaps, but easily done. Adding the ability to read the file directly would be the next step.
Not super happy with the test case, but it covers the bases. A bit worried about relying on the side-effect of "the filesystem isn't broken" but that's so unusual that it's probably not worth fretting over.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.