URLs for avatars & emoticons adding :80 to the end of the domain

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