That suggests that your DNS isn’t set up correctly, though discourse-setup does a test to check that it’s working, so I’m not sure how the ip works and the host name doesn’t.
Did you not get a warning about the port not being open when you ran discourse-setup?
It still looks like you’ve got an external nginx running.
And if you run a bunch of rebuilds without the right dns you’ll hit rate limiting at let’s encrypt.