Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: Vapid Keys guide is down #77

Closed
yllekz opened this issue Feb 15, 2024 · 6 comments
Closed

bug: Vapid Keys guide is down #77

yllekz opened this issue Feb 15, 2024 · 6 comments
Labels
bug Something isn't working

Comments

@yllekz
Copy link

yllekz commented Feb 15, 2024

What happened?

# VAPID keys for push notifications
# Generate using this guide: https://gitlab.insrt.uk/revolt/delta/-/wikis/vapid

Trying to set up revolt and going through the .env file which points me to this guide. The site is unreachable? Unavailable due to hardware failure, working on recovering services – Updates: https://rvlt.gg/GnFjwkqD

I found an archive.org cached copy if needed but just FYI the prod site is down.

https://web.archive.org/web/20230612140827/https://gitlab.insrt.uk/revolt/delta/-/wikis/vapid

@yllekz yllekz added the bug Something isn't working label Feb 15, 2024
@insertish insertish self-assigned this Mar 28, 2024
@Rexogamer
Copy link
Member

Assuming the archive is up to date, this should be pretty easy to resolve - but where do we want to put the guide? This repo? The dev docs?

@insertish insertish removed their assignment Mar 31, 2024
@dillfrescott
Copy link

Its still down?

@mpavkovic
Copy link

Because the URL is still down, and opening an archived copy takes minutes to load, I'm copy-pasting the instructions here, in case anyone needs them

VAPID keys are used to ensure that nobody else can communicate with your clients.

You can generate a private VAPID key by running:

openssl ecparam -name prime256v1 -genkey -noout -out vapid_private.pem

This creates a PEM private key. In order to use this with the server, you must first base64 encode it, then you can pass it in using an environment variable. (Make sure to remove any newlines)

base64 vapid_private.pem

To convert this to a public key, we run:

openssl ec -in vapid_private.pem -outform DER|tail -c 65|base64|tr '/+' '_-'|tr -d '\n'

The output of this command is what the clients will be receiving.

Source: https://web.archive.org/web/20230612140827/https://gitlab.insrt.uk/revolt/delta/-/wikis/vapid

@ne275
Copy link

ne275 commented Jul 10, 2024

so why we need a vapid keys?

@insertish
Copy link
Member

so why we need a vapid keys?

Push notifications

@insertish
Copy link
Member

Guide is back up, closing out issue.
Will migrate it at some point though, probably when I rewrite the documentation for the new backend stuff.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Archived in project
Development

No branches or pull requests

6 participants