Improve self-hosting instructions

This commit is contained in:
Stanko K.R.
2026-07-15 13:29:13 +02:00
parent 9ebc47a8f0
commit 55fbf16629
3 changed files with 197 additions and 35 deletions
+10
View File
@@ -0,0 +1,10 @@
#!/usr/bin/env ruby
require "bundler/setup"
require "securerandom"
require "web_push"
vapid_key = WebPush.generate_key
puts "SECRET_KEY_BASE=#{SecureRandom.hex(64)}"
puts "VAPID_PRIVATE_KEY=#{vapid_key.private_key}"
puts "VAPID_PUBLIC_KEY=#{vapid_key.public_key}"