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.
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.
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.