S3 buckets containing periods not allowed

So, I also wanted to put my uploads behind CloudfFlare, using Wasabi instead of S3, so no CloudFront available.

I ended up directly modifying the DB, and restarting discourse and it worked. Also, does https between CDN and S3 really matter if the bucket is public read only?

UPDATE site_settings SET value = 'uploads.domain.tld' WHERE name = 's3_upload_bucket';

2 Mi Piace

Set the DISCOURSE_S3_CDN variable as explained in the howto guides.

1 Mi Piace

I can set the CDN URL just fine, and point it directly to wasabi. But the only way to get it to go through cloudflare first is to have a CNAME on my domain pointing to s3.wasabisys.com, where the bucket name needs to be subdomain.your.domain.

Eg, I can’t have a bucket called xyz-uploads and use that behind cloudflare with a CNAME to s3.wasabisys.com

2 Mi Piace

Dopo molta frustrazione e ricerche su Google, ho trovato questo argomento e sono sorpreso di vedere che è stato creato nel 2015 e che questo è ancora un problema? È un caso d’uso valido voler utilizzare un bucket S3 con punti e utilizzare la funzionalità di hosting statico di S3, e poi avere CloudFlare davanti a questo con SSL. Non c’è niente di sbagliato in questa configurazione, tranne che Discourse attualmente ci impedisce di farlo.

Se Discourse vuole davvero fare da balia a tutti gli altri utenti per proteggerli da problemi SSL con punti nei nomi dei bucket S3, può almeno visualizzare un link a della documentazione per educarli, consentendo al contempo alle persone che sanno come configurare correttamente questo aspetto di farlo?

2 Mi Piace