Hi, I just wanted to follow up on this. My hunch about the x-forwarded-proto header was incorrect. I was having a firewall issue that prevented the mattermost server from connecting to the nginx server. After that was fixed, the Test Live URL now works.
Here are my updated nginx server settings.