mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-10-31 19:17:48 +00:00 
			
		
		
		
	Chore: Add docs for push notifications env (#865)
This commit is contained in:
		| @@ -114,3 +114,24 @@ LOG_LEVEL= | |||||||
| # value in megabytes | # value in megabytes | ||||||
| LOG_SIZE= 1024 | 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/ | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Pranav Raj S
					Pranav Raj S