# Mixed content problem

**URL:** https://meta.discourse.org/t/mixed-content-problem/121837
**Category:** Self-hosting
**Created:** [July 1, 2019, 10:38pm UTC](https://meta.discourse.org/t/mixed-content-problem/121837 "2019-07-01T22:38:02Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![mikey](https://avatars.discourse-cdn.com/v4/letter/m/439d5e/32.png) [@mikey](https://meta.discourse.org/u/mikey)
#### Post date: [July 1, 2019, 10:38pm UTC](https://meta.discourse.org/t/mixed-content-problem/121837/1 "2019-07-01T22:38:03Z")

</div>

I am running into a weird mixed content related error when serving discourse using a digitalocean droplet:

 ![50](https://global.discourse-cdn.com/meta/original/3X/e/0/e05e7ed0944840923385614a6638daf5fef75054.png)

digitalocean / cloudflare is handling the SSL part, so this is not configured via Discourse or an nginx based reverse proxy. nginx simply forwards incoming requests to the Docker container running Discourse:

```plaintext
server {
        listen 80; listen [::]:80;
        server_name mysite.org;

        location / {
                proxy_pass http://unix:/var/discourse/shared/standalone/nginx.http.sock:;
                proxy_set_header Host $http_host;
                proxy_http_version 1.1;
                proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
                proxy_set_header X-Forwarded-Proto $scheme;
                proxy_set_header X-Real-IP $remote_addr;
        }
}

```

All assets seem to be loaded fine over https, excepts for this 1 file. By entering the app and searching the postgres database I’ve figured out that it is the file _/images/discours.png_ that is causing the problem. I have tried deleting this file and any references to it in the postgres database in an attempt to just avoid loading this image all together, but obviously Discourse re-adds the image when rebuilding the app (at least, I assume it does).

Hopefully someone can give some advice.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [July 1, 2019, 11:17pm UTC](https://meta.discourse.org/t/mixed-content-problem/121837/2 "2019-07-01T23:17:54Z")

</div>

> [@mikey](#):
>
> All assets seem to be loaded fine over https, excepts for this 1 file

Is that a default site logo? Did you try uploading another one to override it?

---

<div class="post-metadata">

### Author: ![mikey](https://avatars.discourse-cdn.com/v4/letter/m/439d5e/32.png) [@mikey](https://meta.discourse.org/u/mikey)
#### Post date: [July 2, 2019, 9:15am UTC](https://meta.discourse.org/t/mixed-content-problem/121837/3 "2019-07-02T09:15:10Z")

</div>

> Is that a default site logo

Yes, it is a file called _discourse.png_, so I assume it is a default site logo. In the db it always has an id of -6 (uploads table).

> Did you try uploading another one to override it?

Yes, also tried that. Then the same problem applies to the custom, uploaded logo.

---

<div class="post-metadata">

### Author: ![fabraz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fabraz/32/180144_2.png) [@fabraz](https://meta.discourse.org/u/fabraz)
#### Post date: [July 30, 2020, 9:59am UTC](https://meta.discourse.org/t/mixed-content-problem/121837/5 "2020-07-30T09:59:43Z")

</div>

Hi there,

Any clues about mixed content problem?

I’ve followed this post recommendations, but the problem still holds!

Thanks in advance!

---

<div class="post-metadata">

### Author: ![IAmGav](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/iamgav/32/235598_2.png) [@IAmGav](https://meta.discourse.org/u/IAmGav)
#### Post date: [July 30, 2020, 10:03am UTC](https://meta.discourse.org/t/mixed-content-problem/121837/6 "2020-07-30T10:03:44Z")

</div>

try and see if you can access that image in a new tab.

Once you know which picture it is, try re-uploading it.

---

<div class="post-metadata">

### Author: ![Benjamin\_D](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/benjamin_d/32/277831_2.png) [@Benjamin\_D](https://meta.discourse.org/u/Benjamin_D)
#### Post date: [July 30, 2020, 10:04am UTC](https://meta.discourse.org/t/mixed-content-problem/121837/7 "2020-07-30T10:04:16Z")

</div>

If I remember correctly, I checked the force\_https parameter and then upload a new logo.  
`https://your.domain/admin/site_settings/category/all_results?filter=force_https`

---

<div class="post-metadata">

### Author: ![fabraz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fabraz/32/180144_2.png) [@fabraz](https://meta.discourse.org/u/fabraz)
#### Post date: [July 30, 2020, 11:28am UTC](https://meta.discourse.org/t/mixed-content-problem/121837/8 "2020-07-30T11:28:04Z")

</div>

> [@Benjamin\_D](#):
>
> [https://your.domain/admin/site\_settings/category/all\_results](https://your.domain/admin/site_settings/category/all_results)

Worked like a charm! Thank you so much!
