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


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Mastodon
  3. Mastodon and S3/Minio

Mastodon and S3/Minio

Scheduled Pinned Locked Moved Solved Mastodon
4 Posts 3 Posters 1.8k Views 3 Watching
  • 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.
    • scookeS Offline
      scookeS Offline
      scooke
      wrote on last edited by
      #1

      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

      girishG 1 Reply Last reply
      0
      • scookeS scooke

        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!

        girishG Offline
        girishG Offline
        girish
        Staff
        wrote on last edited by
        #2

        @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
        
        scookeS 1 Reply Last reply
        2
        • girishG girish

          @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
          
          scookeS Offline
          scookeS Offline
          scooke
          wrote on last edited by
          #3

          @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
          0
          • nebulonN Offline
            nebulonN Offline
            nebulon
            Staff
            wrote on last edited by
            #4

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

            1 Reply Last reply
            2
            • nebulonN nebulon marked this topic as a question on
            • nebulonN nebulon has marked this topic as solved on
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Bookmarks
              • Search