# Avatar Flair Bild verwendet nicht S3 CDN

**URL:** <https://meta.discourse.org/t/avatar-flair-image-doesnt-use-s3-cdn/179851>\
**Category:** Bug\
**Created:** [16. Februar 2021 um 06:21 UTC](https://meta.discourse.org/t/avatar-flair-image-doesnt-use-s3-cdn/179851 "2021-02-16T06:21:36Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![dschaper](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dschaper/32/209535_2.png) [@dschaper](https://meta.discourse.org/u/dschaper)\
**Post date:** [17. Februar 2021 um 20:36 UTC](https://meta.discourse.org/t/avatar-flair-image-doesnt-use-s3-cdn/179851/6 "2021-02-17T20:36:02Z")

</div>

Es sieht so aus, als wäre eine Variable falsch gesetzt:

```plaintext
data-s3-cdn="https://b2discourse.pi-hole.net" data-s3-base-url="//pi-hole-discourse.s3.us-west-001.backblazeb2.com">

```

Von:

```plaintext
<meta id="data-discourse-setup" data-cdn="https://discourse-cdn.pi-hole.net" data-base-url="https://discourse.pi-hole.net" data-base-uri="" data-environment="production" data-letter-avatar-version="5_6363c49f2373467b0c1a609f08282e85" data-markdown-it-url="https://b2discourse.pi-hole.net/assets/markdown-it-bundle-04999a8c1ce5e0e2544244cf2303c4383d8aaae90f8446b875a9724470a9aca3.br.js" data-service-worker-url="service-worker-f303985b31c200485c2aa8e2cdf12f43c5ad579c27d72b781c23319094ff1c5e.js" data-default-locale="en" data-asset-version="23d26bd3e38bb68bf4439a677abf8c6a" data-disable-custom-css="false" data-highlight-js-path="/highlight-js/discourse.pi-hole.net/8bc3c58d47a0fcff6af9ab4ac94ae20259fa83c8.js" data-svg-sprite-path="/svg-sprite/discourse.pi-hole.net/svg-27-758bb98be0f3145e18faa8056ce0ec74ec37e41b.js" data-enable-js-error-reporting="true" data-color-scheme-is-dark="true" data-user-color-scheme-id="1" data-user-dark-scheme-id="-1" data-s3-cdn="https://b2discourse.pi-hole.net" data-s3-base-url="//pi-hole-discourse.s3.us-west-001.backblazeb2.com">

```

Die einzige Basis-URL, die ich auf der Einstellungsseite sehe, ist die URL für Long Polling. Diese ist derzeit auf `/` gesetzt.

Wäre eine neue Umgebungsvariable `DISCOURSE_S3_BASE_URL: https://b2discourse.pi-hole.net` eine mögliche Lösung?

Dies ist das aktuelle S3-Setup:

```plaintext
  DISCOURSE_USE_S3: true
  DISCOURSE_S3_REGION: "us-west-001"
  DISCOURSE_S3_INSTALL_CORS_RULE: false
  DISCOURSE_S3_CONFIGURE_TOMBSTONE_POLICY: false
  DISCOURSE_S3_ENDPOINT: https://s3.us-west-001.backblazeb2.com
  DISCOURSE_S3_ACCESS_KEY_ID: REDACT
  DISCOURSE_S3_SECRET_ACCESS_KEY: REDACT
  DISCOURSE_S3_CDN_URL: https://b2discourse.pi-hole.net
  DISCOURSE_S3_BUCKET: pi-hole-discourse

```

---

_[View the full topic](https://meta.discourse.org/t/avatar-flair-image-doesnt-use-s3-cdn/179851)._
