Readd padding to VAPID_PUBLIC_KEY/VAPID_PRIVATE_KEY

This commit is contained in:
astrid
2025-12-06 00:22:54 +01:00
parent 1b4fb0db5f
commit c2935cfa60
+9 -9
View File
@@ -60,18 +60,18 @@ The values you enter here will be specific to you, and you can get or create the
- `SECRET_KEY_BASE` should be a long, random secret. You can run `bin/rails secret` to create a suitable value for this. - `SECRET_KEY_BASE` should be a long, random secret. You can run `bin/rails secret` to create a suitable value for this.
- `VAPID_PUBLIC_KEY` & `VAPID_PRIVATE_KEY` are a pair of credentials that are used for sending notifications. You can create your own keys by starting a development console with: - `VAPID_PUBLIC_KEY` & `VAPID_PRIVATE_KEY` are a pair of credentials that are used for sending notifications. You can create your own keys by starting a development console with:
```sh ```sh
bin/rails c bin/rails c
``` ```
And then run the following to create a new pair of keys: And then run the following to create a new pair of keys:
```ruby ```ruby
vapid_key = WebPush.generate_key vapid_key = WebPush.generate_key
puts "VAPID_PRIVATE_KEY=#{vapid_key.private_key}" puts "VAPID_PRIVATE_KEY=#{vapid_key.private_key}"
puts "VAPID_PUBLIC_KEY=#{vapid_key.public_key}" puts "VAPID_PUBLIC_KEY=#{vapid_key.public_key}"
``` ```
- `SMTP_USERNAME`/`SMTP_PASSWORD` are credentials you should get from your email provider. - `SMTP_USERNAME`/`SMTP_PASSWORD` are credentials you should get from your email provider.