0
0
Fork 0

Add Rake task for generate VAPID key (#4195)

* Add Rake task for generate VAPID key

* edit config/initializers/vapid.rb
This commit is contained in:
Yamagishi Kazutoshi 2017-07-14 19:13:43 +09:00 committed by Eugen Rochko
parent 489d162477
commit 0fa9dd8527
3 changed files with 11 additions and 2 deletions

View file

@ -6,7 +6,7 @@ Rails.application.configure do
# You should only generate this once per instance. If you later decide to change it, all push subscription will
# be invalidated, requiring the users to access the website again to resubscribe.
#
# ruby -e "require 'webpush'; vapid_key = Webpush.generate_key; puts vapid_key.private_key; puts vapid_key.public_key;"
# Generate with `rake mastodon:webpush:generate_vapid_key` task (`docker-compose run --rm web rake mastodon:webpush:generate_vapid_key` if you use docker compose)
#
# For more information visit https://rossta.net/blog/using-the-web-push-api-with-vapid.html