# Backup restored and images are broken

**URL:** https://meta.discourse.org/t/backup-restored-and-images-are-broken/159206
**Category:** Self-hosting
**Created:** [July 29, 2020, 7:35pm UTC](https://meta.discourse.org/t/backup-restored-and-images-are-broken/159206 "2020-07-29T19:35:14Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![theRAGEhero](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/theragehero/32/184810_2.png) [@theRAGEhero](https://meta.discourse.org/u/theRAGEhero)
#### Post date: [July 29, 2020, 7:35pm UTC](https://meta.discourse.org/t/backup-restored-and-images-are-broken/159206/1 "2020-07-29T19:35:14Z")

</div>

Hi all,  
I’m pretty new to Discourse but I’m already in love with this awesome platform.

I installed the docker version on a VPS and everything was working fine with Nginx as a reverse proxy with certbot.

I had to format the VPS, now with the same configuration, I cannot see the images anymore. I have read that is a common problem but I can’t figure out how to fix it.

[https://forumstatale.it/t/vignette-e-meme-storici/22](https://forumstatale.it/t/vignette-e-meme-storici/22)

In the previous installation, I had a warning concerning mixed content between https and https but I fixed it simply removing the images that I’ve uploaded before activating the https.

I could do the same right now since the forum is new, but I’d like to know what I’m doing wrong in case I have to format it again.

nginx.conf (only the part related to Discourse and the three top settings.

```plaintext

     proxy_set_header X-Forwarded-Proto https;
     client_max_body_size 500M;
     proxy_set_header X-Real-IP $remote_addr; # pass on real client's IP

server { # forumstatale.it
    server_name forumstatale.it;
    access_log logs/forum_statale_it.log main;

    # pass requests for dynamic content to rails/turbogears/zope, et al
    location / {
      proxy_pass http://app;
    }

    listen 443 ssl; # managed by Certbot
    ssl_certificate /etc/letsencrypt/live/forumstatale.it/fullchain.pem; # managed by Certbot
    ssl_certificate_key /etc/letsencrypt/live/forumstatale.it/privkey.pem; # managed by Certbot
    include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
    ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot

}
    server {
    if ($host = forumstatale.it) {
        return 301 https://$host$request_uri;
    } # managed by Certbot

    listen 80;
    server_name forumstatale.it;
    return 404; # managed by Certbot

}

```

Thank you in advance.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [July 29, 2020, 7:41pm UTC](https://meta.discourse.org/t/backup-restored-and-images-are-broken/159206/2 "2020-07-29T19:41:14Z")

</div>

Did you follow the [Discourse official Standard Installation](https://meta.discourse.org/t/discourse-official-standard-installation/142537) or something else?

---

<div class="post-metadata">

### Author: ![theRAGEhero](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/theragehero/32/184810_2.png) [@theRAGEhero](https://meta.discourse.org/u/theRAGEhero)
#### Post date: [July 29, 2020, 9:11pm UTC](https://meta.discourse.org/t/backup-restored-and-images-are-broken/159206/3 "2020-07-29T21:11:26Z")

</div>

I have used the official one ([discourse/docs/INSTALL-cloud.md at main · discourse/discourse · GitHub](https://github.com/discourse/discourse/blob/master/docs/INSTALL-cloud.md)). The only thing that I have skipped is the `./discourse-setup` since I already had my app.yml file that was working perfectly in the previous installation. So I used `./launcher rebuild app`.

thank you

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [July 29, 2020, 10:00pm UTC](https://meta.discourse.org/t/backup-restored-and-images-are-broken/159206/4 "2020-07-29T22:00:23Z")

</div>

You might try turning on the `force https` site setting.

---

<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 29, 2020, 10:44pm UTC](https://meta.discourse.org/t/backup-restored-and-images-are-broken/159206/5 "2020-07-29T22:44:30Z")

</div>

Hi Alessandro,  
Could you have restored a backup that didn’t include the uploads ? (I only ask because i did once 🙄)  
You might try to upload a new file, or verify that the one of your post `/var/discourse/shared/standalone/uploads/default/original/1X/895d0d7c67affaa2caff31c74bd3ef6efbf307e9.jpeg` exists ?

---

<div class="post-metadata">

### Author: ![theRAGEhero](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/theragehero/32/184810_2.png) [@theRAGEhero](https://meta.discourse.org/u/theRAGEhero)
#### Post date: [July 30, 2020, 12:17am UTC](https://meta.discourse.org/t/backup-restored-and-images-are-broken/159206/6 "2020-07-30T00:17:43Z")

</div>

It works but then I lose the https. (I removed it from Discourse)

---

<div class="post-metadata">

### Author: ![theRAGEhero](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/theragehero/32/184810_2.png) [@theRAGEhero](https://meta.discourse.org/u/theRAGEhero)
#### Post date: [July 30, 2020, 12:18am UTC](https://meta.discourse.org/t/backup-restored-and-images-are-broken/159206/7 "2020-07-30T00:18:27Z")

</div>

I checked in the backup and there are the images I’ve uploaded.
