mirror of
https://github.com/basecamp/once-campfire.git
synced 2026-08-08 07:48:44 +09:00
11 lines
266 B
Ruby
Executable File
11 lines
266 B
Ruby
Executable File
#!/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}"
|