Abbiamo spostato gli oggetti (come immagini e altro) su AWS S3. Sono stati ottimi.
Ora vogliamo velocizzare un po’ di più il sito. Come dovrei aggiungere AWS CloudFront come DISCOURSE_CDN?
Ho provato a configurarlo da solo. Funziona quando uso il forum-cdn. Ma non appena inserisco l’URL in discourse_cdn, il sito diventa inutilizzabile e tutte le immagini hanno reindirizzamenti multipli e smettono di funzionare.
Lilly
(Lillian Louis)
24 Novembre 2024, 11:08pm
2
Hai dato un’occhiata alla documentazione qui:
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…
anche
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 Mi Piace
Yap! Ho usato questo come metodo di configurazione.
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…
Ma il secondo post contiene quello che non sono sicuro se sia la configurazione ufficiale. E il post era del 2021.
Non configurare "DISCOURSE_CDN_URL"
Lilly
(Lillian Louis)
24 Novembre 2024, 11:17pm
4
Tutto ciò di cui hai bisogno dovrebbe essere qui, a partire da questo argomento
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…
Ho già fatto questo. L’immagine del nostro sito è su AWS S3 con CloudFront. Sto cercando di memorizzare nella cache più elementi, come l’immagine dell’avatar dell’utente, invece di raggiungere il server.
2 Mi Piace
Il CDN S3 dovrebbe essere DISCOURSE_S3_CDN.
DISCOURSE_CDN è per il CDN dell’app
2 Mi Piace
Capisco questa parte. Sto cercando di aggiungere una CDN completa per l’app per il sito. Quindi vorrei utilizzare DISCOURSE_CDN.