نظام التحميل لا يستخدم عنوان CDN الخاص بـ S3

,

الإصدار v2.2.0.beta3 +153

أستخدم Minio كبوابة S3 داخليًا. ومع ذلك، عند رفع صورة، لا يتم استخدام عنوان URL الخاص بشبكة CDN.

على سبيل المثال، عند رفع صورة شخصية، يتم استخدام عنوان IP داخلي بدلاً من عنوان URL الخاص بشبكة CDN. وهذا يتسبب في فشل عرض الصورة الشخصية.

Does the IP discourse presents as the CDN match the IP you’re using for Minio? Does the public DNS name for Minio have a certificate?

I am using minio on internal upload only. For example, discourse on 192.168.1.5 and minio on 192.168.1.6:9000. When I browse in Chrome, it tries to request 192.168.1.6:9000 which will not work.
I expect it to load from cdn.example.com which like image in post.

So you’ve followed the official guide for configuring Minio with Discourse?

How does your setup differ?

Yes, I followed the guide. It works on images upload in posts but not system upload. For example avatar, logo and icon.

All the images in posts use cdn.example.com but system upload use 192.168.1.6:9000.

Here is my config.

Actually, the preview also link to IP instead of CDN. Only the image being in post (original and optimized) are using CDN url.

This problem seems to happen here as well. If you upload an image, the one you see in preview is discourse-meta.s3.dualstack.us-west-1.amazonaws.com instead of meta-s3-cdn.freetls.fastly.net.

Yeah this is indeed the case, preview does not use CDN, hiding the S3 origin from clients is an unsupported setup atm, longer term I expect even more trouble when we support direct to s3 uploads

I also found out the images uploaded are allowed to view by public. If there are future updates on this, please do not set it if CDN is set. This is because it bypass the bucket policy to enforce all objects must go through CDN.

لذلك لا زلت مرتبكًا هنا… حتى مع وجود عنوان URL الخاص بـ CloudFront في حقل “عنوان URL لـ S3 CDN”، فإن جميع الصور المرفوعة (سواء في المعاينة أم لا) تستخدم عنوان s3.dualstack وليس عنوان CloudFront/CDN الخاص بي.

ما الذي أفتقده؟

إليك إعداداتي:

نص منسق

يبدو هذا وكأنه خطأ وليس ميزة، حيث إنه يفرض عليك وجود صلاحيات ACL عامة لحزمة S3 الخاصة بك. يبدو أن هذه المشكلة أُبلغ عنها هنا منذ سنوات، لكنها لم تُصلح: S3 CDN URL ignored when uploading into posts