mirror of
https://github.com/stoatchat/self-hosted.git
synced 2026-03-19 17:25:17 -05:00
feat: 0.8 release (pushd) (#115)
* feat: pushd and version 0.8 * feat: add important note to top of file * fix: actually put the date in * fix: fixed default keys in the default backend config
This commit is contained in:
4
generate_config.sh
Executable file → Normal file
4
generate_config.sh
Executable file → Normal file
@@ -14,9 +14,9 @@ echo "january = \"https://$1/january\"" >> Revolt.toml
|
||||
|
||||
# VAPID keys
|
||||
echo "" >> Revolt.toml
|
||||
echo "[api.vapid]" >> Revolt.toml
|
||||
echo "[pushd.vapid]" >> Revolt.toml
|
||||
openssl ecparam -name prime256v1 -genkey -noout -out vapid_private.pem
|
||||
echo "private_key = \"$(base64 vapid_private.pem | tr -d '\n')\"" >> Revolt.toml
|
||||
echo "private_key = \"$(base64 -i vapid_private.pem | tr -d '\n')\"" >> Revolt.toml
|
||||
echo "public_key = \"$(openssl ec -in vapid_private.pem -outform DER|tail -c 65|base64|tr '/+' '_-'|tr -d '\n')\"" >> Revolt.toml
|
||||
rm vapid_private.pem
|
||||
|
||||
|
||||
Reference in New Issue
Block a user