aboutsummaryrefslogtreecommitdiff
path: root/conf
diff options
context:
space:
mode:
authoryalh76 <yalh@yahoo.com>2019-03-22 23:24:05 +0100
committeryalh76 <yalh@yahoo.com>2019-03-22 23:24:05 +0100
commite7df7cc8d71cbde6e4a74552298a83c579751163 (patch)
tree9ae4eb3dffec6e5de062628db3ae5c0cefcf1a5d /conf
parentc7da529e29cca2fe42608a3fd73935d75930bba5 (diff)
downloadmastodon_ynh-e7df7cc8d71cbde6e4a74552298a83c579751163.tar.gz
mastodon_ynh-e7df7cc8d71cbde6e4a74552298a83c579751163.tar.bz2
mastodon_ynh-e7df7cc8d71cbde6e4a74552298a83c579751163.zip
Add VAPID Keys generation
Diffstat (limited to 'conf')
-rw-r--r--conf/.env.production.sample21
1 files changed, 10 insertions, 11 deletions
diff --git a/conf/.env.production.sample b/conf/.env.production.sample
index ee65015..2093267 100644
--- a/conf/.env.production.sample
+++ b/conf/.env.production.sample
@@ -36,17 +36,6 @@ LOCAL_DOMAIN=__DOMAIN__
SECRET_KEY_BASE=__SECRET_KEY_BASE__
OTP_SECRET=__OTP_SECRET__
-# VAPID keys (used for push notifications
-# You can generate the keys using the following command (first is the private key, second is the public one)
-# You should only generate this once per instance. If you later decide to change it, all push subscription will
-# be invalidated, requiring the users to access the website again to resubscribe.
-#
-# Generate with `RAILS_ENV=production bundle exec rake mastodon:webpush:generate_vapid_key` task (`docker-compose run --rm web rake mastodon:webpush:generate_vapid_key` if you use docker compose)
-#
-# For more information visit https://rossta.net/blog/using-the-web-push-api-with-vapid.html
-VAPID_PRIVATE_KEY=
-VAPID_PUBLIC_KEY=
-
# Registrations
# Single user mode will disable registrations and redirect frontpage to the first profile
# SINGLE_USER_MODE=true
@@ -230,3 +219,13 @@ STREAMING_CLUSTER_NUM=1
# http_proxy=http://gateway.local:8118
# Access control for hidden service.
# ALLOW_ACCESS_TO_HIDDEN_SERVICE=true
+
+
+# VAPID keys (used for push notifications
+# You can generate the keys using the following command (first is the private key, second is the public one)
+# You should only generate this once per instance. If you later decide to change it, all push subscription will
+# be invalidated, requiring the users to access the website again to resubscribe.
+#
+# Generate with `RAILS_ENV=production bundle exec rake mastodon:webpush:generate_vapid_key` task (`docker-compose run --rm web rake mastodon:webpush:generate_vapid_key` if you use docker compose)
+#
+# For more information visit https://rossta.net/blog/using-the-web-push-api-with-vapid.html