Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automating Web Push Key Generation #1255

Open
goldstar611 opened this issue Jan 9, 2025 · 1 comment
Open

Automating Web Push Key Generation #1255

goldstar611 opened this issue Jan 9, 2025 · 1 comment

Comments

@goldstar611
Copy link

require.Contains(t, stderr.String(), "Web Push keys generated.")

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?
@wunter8
Copy link
Contributor

wunter8 commented 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants