Sorry, I should have explained.
You are self-hosting so you don’t need the Discourse-hosted instructions. I just included it to show there can be problems using apex domains and you should understand this significant con.
It’s not actually directly relevant to your current issue. But if you are interested in understanding this issue then this blog is good to read