头像和表情包的网址在域名末尾加上:80

This is very likely caused by something in your NGINX config then. Check out Running other websites on the same machine as Discourse for more details.