User avatars not in S3 but served via discourse_cdn_url

While setting up our S3 cached with CloudFront, and origin assets cached with via another CloudFront subdomain, I saw that the user avatars are still hosted and served via https://cdn-origin.xxxxx.com.

Is this correct, or should they not also uploaded and delivered via cdn-uploads from the S3 bucket?

  DISCOURSE_USE_S3: true
  DISCOURSE_S3_REGION: us-east-1
  DISCOURSE_S3_ACCESS_KEY_ID: XXXXXXXXXXXXXXXXXXXXXXXX
  DISCOURSE_S3_SECRET_ACCESS_KEY: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
  DISCOURSE_S3_CDN_URL: https://cdn-uploads.xxxxx.com
  DISCOURSE_S3_BUCKET: xxxxx-uploads
  DISCOURSE_S3_BACKUP_BUCKET: xxxxx-backup
  DISCOURSE_BACKUP_LOCATION: s3
  DISCOURSE_CDN_URL: https://cdn-origin.xxxxx.com
1 Like

Avatars, Stylesheets, Javascripts for themes and others are still served from the app, so they are served via DISCOURSE_CDN_URL and not via DISCOURSE_S3_CDN_URL.

Moving some of those to DISCOURSE_S3_CDN_URL is a long term goal, but there are trade-offs in complexity.

5 Likes

Understood, thanks for confirming that all is working as it should then.

2 Likes