لقد نقلنا الكائنات (مثل الصور وغيرها) إلى AWS S3. كانت هذه رائعة.
الآن نريد تسريع الموقع أكثر قليلاً. كيف يمكنني إضافة AWS CloudFront كـ DISCOURSE_CDN؟
لقد حاولت الإعداد بنفسي. يعمل عندما أستخدم forum-cdn. ولكن بمجرد أن أضع عنوان URL في discourse_cdn، يصبح الموقع غير قابل للاستخدام وتتعرض جميع الصور لإعادة توجيهات متعددة وتتوقف عن العمل.
Lilly
(Lillian Louis)
24 نوفمبر 2024، 11:08م
2
هل اطلعت على الوثائق هنا:
So you’d like to use a CDN to speed up worldwide access to common assets on your Discourse forum? You might want to go all-in and Set up file and image uploads to S3 (see also Configure an S3 compatible object storage provider for uploads ).
If you want a CDN without the added complexity of S3 and having two CDNs, this is the guide for you. The CDN will reduce some load on your server by letting the CDN serve those assets so that the server doesn’t have to. It also can speed things up by deliver…
وأيضاً
Hello All. I recently got my Discourse installation setup using AWS CloudFront (CF) for full site acceleration - and SSL offloading using AWS certs in CF. Note that this installation deviates from the official guide regarding CDN and SSL configuration - so that might be controversial and lead to future supportability issues. So be forewarned… there be dragons here. I am sharing the configuration that worked for me here:
Setup discourse to listen on port 80 only and disable Let’s Encrypt by co…
إعجاب واحد (1)
نعم! لقد استخدمت هذا كطريقة للإعداد.
So you’d like to use a CDN to speed up worldwide access to common assets on your Discourse forum? You might want to go all-in and Set up file and image uploads to S3 (see also Configure an S3 compatible object storage provider for uploads ).
If you want a CDN without the added complexity of S3 and having two CDNs, this is the guide for you. The CDN will reduce some load on your server by letting the CDN serve those assets so that the server doesn’t have to. It also can speed things up by deliver…
لكن المنشور الثاني يحتوي على ما لست متأكدًا مما إذا كان الإعداد الرسمي. وكان المنشور من عام 2021.
لا تقم بتكوين "DISCOURSE_CDN_URL"
Lilly
(Lillian Louis)
24 نوفمبر 2024، 11:17م
4
كل ما تحتاجه يجب أن يكون هنا، بدءًا من هذا الموضوع
This topic covers how to configure some common S3 compatible Object Storage providers (S3 clones). See Set up file and image uploads to S3 for more details about Amazon AWS S3 configuration, which is officially supported and used internally by Discourse for our hosting services.
Provider
Service Name
Works with Discourse?
Amazon AWS
S3
Yes
Digital Ocean
Spaces
Yes
Linode
Object Storage
Yes
Google Cloud
Storage
Yes
Scaleway
Object Storage
Yes
Vultr
Obj…
لقد قمت بهذا بالفعل. صورة موقعنا موجودة على AWS S3 مع cloudfront. أحاول التخزين المؤقت للمزيد مثل صورة user_avatar بدلاً من الوصول إلى الخادم.
إعجابَين (2)
يجب أن يكون S3 CDN هو DISCOURSE_S3_CDN.
DISCOURSE_CDN مخصص لـ app CDN
إعجابَين (2)
أنا أفهم هذا الجزء. أحاول إضافة شبكة توصيل محتوى (CDN) كاملة للتطبيق للموقع. لذا أود الاستفادة من DISCOURSE_CDN.