Browse Source

Add how to create VAPID_PRIVATE_KEY and VAPID_PUBLIC_KEY (#376)

cybergene 6 years ago
parent
commit
6e52a54bbf
1 changed files with 4 additions and 0 deletions
  1. 4 0
      Running-Mastodon/Docker-Guide.md

+ 4 - 0
Running-Mastodon/Docker-Guide.md

@@ -41,6 +41,10 @@ Now the image can be used to generate secrets. Run the command below for each of
 
     docker-compose run --rm web rake secret
 
+To enable Web Push notifications, you should generate a few extra secrets and put them into your `.env.production` file. Run Command below below for each of `VAPID_PRIVATE_KEY` and `VAPID_PUBLIC_KEY` then copy the result into the `.env.production` file: 
+
+    docker-compose run --rm web rake mastodon:webpush:generate_vapid_key
+
 Then you should run the `db:migrate` command to create the database, or migrate it from an older release:
 
     docker-compose run --rm web rake db:migrate