Chore: Add docs for push notifications env (#865)

This commit is contained in:
Pranav Raj S 2020-05-15 12:15:28 +05:30 committed by GitHub
parent e6aa851987
commit 467fcda6fc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -114,3 +114,24 @@ LOG_LEVEL=
# value in megabytes
LOG_SIZE= 1024
```
### Push Notification
Chatwoot uses web push for push notification on the dashboard. Inorder to get the push notifications working you have to setup the following [VAPID](https://tools.ietf.org/html/draft-thomson-webpush-vapid-02) keys.
```bash
VAPID_PUBLIC_KEY=
VAPID_PRIVATE_KEY=
```
If you are comfortable with the Rails console, you could run `rails console` and run the following commands
```rb
vapid_key = Webpush.generate_key
# Copy the following to environment variables
vapid_key.public_key
vapid_key.private_key
```
Or you can generate a VAPID key from https://d3v.one/vapid-key-generator/