This is a template repository for running Mastodon on Render.
Make sure you have the following:
- A SMTP credential from third party SMTP service provider.
- A Render account.
-
Fork this repo.
-
Click to deploy
-
You will be prompted to input the VAPID private/public key and SMTP setting. You can put any placeholder string for the VAPID key for now.
-
After all services are created, in the Render dashboard, find the
mastodon-web
service. Go to the Shell tab and runbundle exec rake mastodon:webpush:generate_vapid_key
. Copy the private key and public key and updateVAPID_PRIVATE_KEY
andVAPID_PUBLIC_KEY
in the Environment tab. -
That's it. Open the
mastodon-web-<anything>.onrender.com
URL of themastodon-web
service and your Mastodon website is up.
- If you have your own domain, update
MY_LOCAL_DOMAIN
in therender.yaml
. The value will be used in Mastodon'sLOCAL_DOMAIN
environment variable.