rocher
(admin)
10 يناير 2026، 2:41م
1
تم الرفع بنجاح إلى تخزين السحابة التابع لـ Qiniu، والرابط الذي تم تحميله هو: https://img.i4ta.com/original/1X/5be788f6a5e3d0efa278e1e87b6c6ca6be2ce4cf.mp4، وعند فتحه في المتصفح تظهر الرسالة:
{
error: "download token not specified"
}
الفيديو الذي تم تحميله في الموضوع:
<video width="100%" height="100%" preload="metadata" controls="" style="display:none">
<source src="https://img.i4ta.com/original/1X/5be788f6a5e3d0efa278e1e87b6c6ca6be2ce4cf.mp4">
<a href="https://img.i4ta.com/original/1X/5be788f6a5e3d0efa278e1e87b6c6ca6be2ce4cf.mp4">https://img.i4ta.com/original/1X/5be788f6a5e3d0efa278e1e87b6c6ca6be2ce4cf.mp4</a>
</video>
هل لم يتم تفعيل مصادقة الحاوية الخاصة (buket)؟ ولكنني لا أعرف أين يمكنني تكوينها، هل هناك أي خبير يعرف كيفية حل هذه المشكلة؟
Lilly
10 يناير 2026، 2:59م
2
هل قرأت هذا الموضوع؟
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…
أنا لا أعرف شيئًا عن Qiniu Cloud أو ما إذا كان تخزين S3 الخاص بهم مدعومًا، ولكن ستحتاج إلى مفتاح وصول ورمز (أعتقد أنهما يتم إنشاؤهما في وحدة تحكم Qiniu Cloud الخاصة بك). إذا كان ذلك ممكنًا، فمن المحتمل أن تبدو إعدادات ملف app.yml الخاص بك شيئًا كهذا المثال :
## تخزين S3
DISCOURSE_USE_S3: true
DISCOURSE_S3_REGION: whatever
DISCOURSE_S3_ENDPOINT: http://s3-ap-southeast-1.qiniucs.com
DISCOURSE_S3_ACCESS_KEY_ID: *************
DISCOURSE_S3_SECRET_ACCESS_KEY: *****************
DISCOURSE_S3_CDN_URL: http://qiniu.pengfeima.cn
DISCOURSE_S3_BUCKET: qiniu-s3
DISCOURSE_S3_BACKUP_BUCKET: qiniu-s3/backups
DISCOURSE_BACKUP_LOCATION: s3
إعجاب واحد (1)
pfaffman
(Jay Pfaffman)
10 يناير 2026، 11:50م
3
بالفعل https://img.i4ta.com/original/1X/5be788f6a5e3d0efa278e1e87b6c6ca6be2ce4cf.mp4 يعطي هذا الخطأ. ستحتاج إلى التحقق في مكان يعرف فيه الناس حول كيفية تكوين i4ta. أنا متأكد من أن الأمر يتعلق بالإعداد هناك.
rocher
(admin)
11 يناير 2026، 2:11ص
4
نعم، لقد قمت بتثبيته عبر docker-compose، وقمت بإعداد مفتاح الوصول (ak) والمفتاح السري (sk) في خلفية Discourse، ويمكنني تحميل الملفات بنجاح. المشكلة هي أنني لا أستطيع عرضها. لقد فحصت جميع الإعدادات الممكنة ولم أجد مكانًا لتكوين إضافة الرمز المميز (token) عند الوصول إلى رابط شبكة توصيل المحتوى (CDN). نظرًا لأن هذا التخزين خاص، يجب أن يتضمن الرمز المميز. هل هناك أي مكان آخر بخلاف الإعدادات المذكورة أعلاه؟
rocher
(admin)
11 يناير 2026، 2:14ص
5
إعداداتي هي كما يلي، هل هي صحيحة؟ هل هناك أي إعدادات أخرى مطلوبة؟
إذا كان دلو S3 الخاص بك خاصًا، فأنت بحاجة إلى تمكين خيار التحميلات الآمنة (Secure uploads) وإلا فلن يحاول Discourse توقيع روابط المرفقات
بعد تغيير هذا الإعداد، ستحتاج إلى إعادة خبز (rebake) المنشورات لتصبح سارية المفعول
Added in the Discourse 2.4 release in February is the Secure Uploads feature, which provides a higher degree of security for ALL uploads (images, video, audio, text, pdfs, zips, and others) within a Discourse instance.
Prerequisites
You must have S3 uploads enabled on your site, which needs the following settings to be filled:
S3 access key id
S3 secret access key
S3 region
S3 upload bucket
You also must be using an S3 bucket that does not have a Public bucket policy, and you need to make su…
إعجاب واحد (1)