mastodon: export vapid key for worker

single-dockerfile
Ubuntu 2 years ago
parent 62fcccf0c7
commit 07568c6f4b
  1. 3
      mastodon.yaml
  2. 1
      mastodon/entrypoint.sh

@ -160,7 +160,8 @@ services:
- SMTP_LOGIN=$SMTP_USER - SMTP_LOGIN=$SMTP_USER
- SMTP_PASSWORD=$SMTP_PASSWORD - SMTP_PASSWORD=$SMTP_PASSWORD
- SMTP_FROM_ADDRESS=mastodon@$DOMAIN_NAME - SMTP_FROM_ADDRESS=mastodon@$DOMAIN_NAME
command: bundle exec sidekiq - VAPID_KEY_FILE=/mastodon/public/system/vapid_key
entrypoint: ['/bin/bash', '-c', 'if [ -r "$$VAPID_KEY_FILE" ]; then . "$$VAPID_KEY_FILE" ; export VAPID_PUBLIC_KEY VAPID_PRIVATE_KEY ; echo "VAPID_PUBLIC_KEY=$$VAPID_PUBLIC_KEY"; fi ; exec bundle exec sidekiq' ]
depends_on: depends_on:
- mastodon-db - mastodon-db
- mastodon-redis - mastodon-redis

@ -21,6 +21,7 @@ if [ ! -r "$VAPID_KEY" ]; then
fi fi
. "$VAPID_KEY" . "$VAPID_KEY"
export VAPID_PRIVATE_KEY VAPID_PUBLIC_KEY
if [ ! -r "$DB_SETUP" ]; then if [ ! -r "$DB_SETUP" ]; then
rails db:setup \ rails db:setup \

Loading…
Cancel
Save