Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Solved Mastodon and S3/Minio

    Mastodon
    3
    4
    941
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • scooke
      scooke last edited by

      Hello! I'm trying to figure out how to get my cloudron Mastodon to use a Minio instance on another VPS.

      Based on https://docs.joinmastodon.org/admin/optional/object-storage-proxy/, I see this:

      At last, you'll want to make sure Mastodon is using your new proxy to generate file URLs. Edit your Mastodon's .env.production to add:
      
      S3_ALIAS_HOST=files.example.com
      

      But the previous instructions seem to assume I'm using an nginx proxy for a Minio setup on the same machine as the Mastodon instance.

      For my situation, would I simply just need to write

      S3_ALIAS_HOST=ip:port/bucketname
      

      Has anyone else successfully set this up? Thank you!

      A life lived in fear is a life half-lived

      girish 1 Reply Last reply Reply Quote 0
      • girish
        girish Staff @scooke last edited by

        @scooke Look at this https://github.com/cybrespace/cybrespace-meta/blob/master/s3.md instead. The one you linked is for proxying object storage requests via mastodon for caching purposes. The variables you need are:

        S3_ENABLED
        S3_BUCKET
        AWS_ACCESS_KEY_ID
        AWS_SECRET_ACCESS_KEY
        S3_REGION
        S3_PROTOCOL
        S3_HOSTNAME
        
        scooke 1 Reply Last reply Reply Quote 2
        • scooke
          scooke @girish last edited by

          @girish Great, I'll give it a try. Indeed, I need something like this because the size of my main Mastodon installation on Cloudron is already over 28GB! I've had to turn off Auto-Backup for it since it takes so long.

          A life lived in fear is a life half-lived

          1 Reply Last reply Reply Quote 0
          • nebulon
            nebulon Staff last edited by

            I will mark this as solved as many users have succeeded to use s3 for media storage already.

            1 Reply Last reply Reply Quote 2
            • Topic has been marked as a question  nebulon nebulon 
            • Topic has been marked as solved  nebulon nebulon 
            • First post
              Last post
            Powered by NodeBB