האם Hetzner Object Storage ו-Bunny CDN נתמכים?

,

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:

לייק 1

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?

כאשר מגדירים את ה-DISCOURSE_S3_CDN_URL, כל הנכסים נדרשים מאותו מארח, כולל קובץ ה-JavaScript start-discourse וקבצי .js אחרים. בחלק מההודעות, מוצע להגדיר את ה-DISCOURSE_CDN_URL לאותו מארח כמו השרת שמריץ את Discourse כדי להימנע מכך, אך גם במקרה כזה קבצי ה-.js עדיין נדרשים דרך אותו מארח כמו ה-DISCOURSE_S3_CDN_URL.

לא, לא הפעלנו את הפקודה upload_assets לאחר בניית היישום, כי לא רצינו להעלות את קבצי ה-.js ל-CDN, באופן אידיאלי אנחנו רוצים שההעלאות יהיו רק ב-S3 ובשום אופן אין להימצא נכסים שממוקמים על ה-CDN.

לייק 1

That’s not how it works.
You upload assets to S3 and then the CDN will pull them from S3.

2 לייקים

We now have this working.

2 לייקים

Can you share what made it work? :slightly_smiling_face:

לייק 1

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.

4 לייקים

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.