استفسار حول دعم Discourse لتخزين Amazon S3

I’d like to ask about a technical issue regarding Discourse’s support for Amazon S3 storage.

I came across a forum post from as early as 2013 that already discussed Discourse’s S3 support. I also found a few threads related to CDN offloading, but there doesn’t seem to be much detailed information on this topic.

I’ve built a Discourse forum myself and have been very persistent about enabling video uploads. I’ve come up with many ideas, but since I’m not a programmer, it’s been difficult to put them into practice—I always need help from others to make progress bit by bit.

Discourse itself supports small video uploads, and I’ve already enabled that feature. However, the architecture of Discourse is not really suited for handling video uploads efficiently. After a lot of research, I discovered that it’s actually possible to use Amazon S3 storage together with CDN offloading, or alternatively, S3 storage with a proxy cache setup.

Indeed, I’ve already asked a friend to help me configure S3 storage and proxy caching. (For clarification, I didn’t consider using a CDN because of cost concerns—Amazon S3’s CDN service can be quite expensive.)

Now I’m facing a problem: during testing, even though S3 storage has been properly configured, and theoretically all uploads from the forum should go directly to S3, video files still cannot be uploaded to S3 storage.

Could anyone please explain what might be misconfigured or what could be causing this issue?

thanks

What happens instead? Do you get an error message?

You might also want to check the settings “max attachment size kb” and “authorized extensions”, both in Site Settings - Files.

Please note that even with CDN and S3, this setup is still not very suitable for videos, since there is no transcoding to offer the best fit for the clients bandwidth and resolution.

إعجابَين (2)


Thank you very much for your reply. Here’s the situation:
Right now, images from my forum can be successfully uploaded to S3, but videos cannot. It’s really confusing to me.

Although I understand that S3 might still not be ideal for handling videos, the main content of the forum is text and images. The video feature is just to meet the needs of some users, and the videos themselves won’t be very large. Thank you very much for the reminder.

You forgot to answer my question :slight_smile:

إعجابَين (2)

Amazon’s CDN is cheaper than egress from S3 buckets. You definitely want a CDN in front of your S3 bucket.

I suspect that the error you haven’t told us about has to do with videos being too big. There are settings for changing that, but it might be better to enable Enable direct S3 uploads .

إعجابَين (2)