If you use Magento from the root dir you might want to make sure all your images url are valid. There are some known issue with this but it's generally considered a good practice.
Maybe you have image path like example.com/pub/media/image.png
instead of example.com/media/image.png
.
The best way to fix this is to tell your server to ignore the /pub in the URLs. Do not set redirection!
Find above the lines to add to your server configuration.
Hi, you're missing a trailing slash on that nginx config;
location /pub/ {
alias /var/www/public/pub/;
}
;)