Can I Use Mastodon With Contabo's Object Storage?

What is Mastodon?

Mastodon is a self-hosted social network platform. Contabo's Object Storage can be used to store users' content such as avatars, images and attachments. 


Please follow the installation instructions as described here in the Mastodon docs if you're interested in using Mastodon. 


You will need the following information to setup Mastodon to work with Contabo's Object Storage:

  • access_key
  • secret_key
  • Contabo's S3 URL
  • your tenant ID
  • your bucket name


Your tenant ID is shown when enabling public sharing for any object in the Object Storage Control Panel. It is the same for all buckets and objects in your account.


How do I setup Mastodon to work with Contabo's Object Storage?

Append these lines to your .env.production configuration file in the Mastodon directory:

S3_ENABLED=true
S3_BUCKET=mastodon
AWS_ACCESS_KEY_ID=82046e8110804a43bf29c1ae426a724d
AWS_SECRET_ACCESS_KEY=82e69bd7a52076c527154297a76c2233
S3_REGION=default
S3_PROTOCOL=https
S3_HOSTNAME=eu2.contabostorage.com
S3_ENDPOINT=https://eu2.contabostorage.com
S3_ALIAS_HOST=eu2.contabostorage.com/98d02cad15d64d8491cd5f43f657df78:mastodon

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article

Modified on Tue, 24 Sep at 9:03 AM

Can’t find what you’re looking for?

Get in Touch

Do you have a pre-sales question?