Chore: Add docs for push notifications env (#865)
This commit is contained in:
parent
e6aa851987
commit
467fcda6fc
1 changed files with 21 additions and 0 deletions
|
@ -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/
|
||||
|
|
Loading…
Reference in a new issue