I can see discourse meta also using cloudfront. I tried to implement it on my forum but doesn’t get success. The cloudfront assets URL’s are redirecting back to my original URL. So please can anybody help me with correct way to add cloudfront in discourse forum.
你处理好了吗?
大家好,这个问题有更新吗?你们成功将 CloudFront 与 Discourse 配置好了吗?我们也在尝试做同样的事情。
@Magnetidog 我刚刚让它运行起来了。
我基本上按照这个视频中的说明创建了 AWS CloudFront 分发。
然后,我进入管理面板,将我的 CloudFront URL 添加到 s3 cdn url 键中。
接着,我进入容器并使用 rake posts:rebake 重新烘焙了所有帖子(每 7000 个帖子大约需要 10 分钟)。
我还尝试在 Rails 控制台中分批执行,但不知为何没有生效:Post.in_batches.update_all('baked_version = NULL')(没有任何反应🤷🏻♂)