Hello. Do you support Hetzner Object Storage and Bunny CDN? I am not able to get these to work correctly.
I do see that the S3 region does not support the region I need, which is Falkenstein. How do we enable this region?
Hello. Do you support Hetzner Object Storage and Bunny CDN? I am not able to get these to work correctly.
I do see that the S3 region does not support the region I need, which is Falkenstein. How do we enable this region?
I’m not too sure about this. The list doesn’t contain Hetzner.
Yep, it is:
Hello. Thank you for your reply, Nate. So, we were able to get the S3 Hetzner Object Bucket to work, but we were not able to get the Bunny CDN to work at all. When we had the Bunny CDN enabled, the website would not load. It was stuck on the loading screen Discourse gives you.
Hmm… did you follow these guides?
When setting the DISCOURSE_S3_CDN_URL
, all asssets are being requested from that host, which includes the start-discourse javascript file as well as other .js files. In some posts, it suggests setting the DISCOURSE_CDN_URL
to the same host as the server running Discourse to avoid that, however doing so the .js files are still requested through the same host as the DISCOURSE_S3_CDN_URL
.
No, we did not run the upload_assets
command afer building the app, because we did not want to upload the .js files to the CDN, we ideally only want to have uploads in the S3 bucket and we don’t want any assets hosted on the CDN otherwise.
That’s not how it works.
You upload assets to S3 and then the CDN will pull them from S3.
We now have this working.
Can you share what made it work?
Hello! I hope this helps, if you are still not clear on this, please let me know and I will rewrite this to make more sense.
In app.yml
set:
env:
DISCOURSE_S3_CDN_URL: [BUNNY CDN]
Then after the app was rebuilt, we ran:
sudo ./launcher enter app
rake s3:upload_assets
exit
[!] I can confirm, Hetzner Object Storage does work with S3.