S3 buckets containing periods not allowed

So, I also wanted to put my uploads behind CloudfFlare, using Wasabi instead of S3, so no CloudFront available.

I ended up directly modifying the DB, and restarting discourse and it worked. Also, does https between CDN and S3 really matter if the bucket is public read only?

UPDATE site_settings SET value = 'uploads.domain.tld' WHERE name = 's3_upload_bucket';

2 个赞

Set the DISCOURSE_S3_CDN variable as explained in the howto guides.

1 个赞

I can set the CDN URL just fine, and point it directly to wasabi. But the only way to get it to go through cloudflare first is to have a CNAME on my domain pointing to s3.wasabisys.com, where the bucket name needs to be subdomain.your.domain.

Eg, I can’t have a bucket called xyz-uploads and use that behind cloudflare with a CNAME to s3.wasabisys.com

2 个赞

在经历了许多挫折和搜索之后,我找到了这个话题,并惊讶地发现它创建于 2015 年,而且这个问题仍然存在?使用带有句点的 S3 存储桶并利用 S3 的静态托管功能,然后在前面加上 CloudFlare 和 SSL,这是一个有效的用例。除了 Discourse 目前阻止我们这样做之外,这种设置没有任何问题。

如果 Discourse 真的想强制所有其他用户保护自己免受 S3 存储桶名称中带有句点的 SSL 问题的影响,那么它是否至少可以提供一个链接到一些文档供他们自行学习,同时允许那些知道如何正确配置的人这样做?

2 个赞