Movemos os objetos (como imagens e outros) para a AWS S3. Eles têm sido ótimos.
Agora queremos acelerar um pouco mais o site. Como devo adicionar a AWS CloudFront como DISCOURSE_CDN?
Tentei configurar sozinho. Funciona quando estou usando o forum-cdn. Mas assim que coloco a URL em discourse_cdn, o site se torna inutilizável e todas as imagens têm múltiplos redirecionamentos e param de funcionar.
Lilly
(Lillian Louis)
Novembro 24, 2024, 11:08pm
2
Você deu uma olhada na documentação aqui:
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…
também
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 curtida
Yap! Usei este como a forma de configurar.
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…
Mas a segunda postagem contém algo que não tenho certeza se é a configuração oficial. E a postagem é de 2021.
Não configure “DISCOURSE_CDN_URL”
Lilly
(Lillian Louis)
Novembro 24, 2024, 11:17pm
4
Tudo o que você precisa deve estar aqui, começando com este tópico
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…
Eu já fiz isso. A imagem do nosso site está na AWS S3 com cloudfront. Estou tentando cachear mais, como a imagem user_avatar, em vez de acessar o servidor.
2 curtidas
supermathie
(Michael Brown)
Novembro 25, 2024, 4:45am
6
O S3 CDN deve ser DISCOURSE_S3_CDN.
DISCOURSE_CDN é para o CDN do aplicativo
2 curtidas
Eu entendo esta parte. Estou tentando adicionar um CDN de aplicativo completo para o site. Então, eu gostaria de utilizar DISCOURSE_CDN.