I managed to get this working. In the YAML file comment out lines relating to port 443 and Let’s encrypt. Then use ./discourse-setup --skip-connection-test
I set it up with localhost
as the hostname and it worked. I think last time, it didn’t work because I forgot to comment out the Let’s encrypt lines.