Your latest code fixes the issue at hand.
Thank you so much!
How do I make NodeBB run on port 80? (Noob)
(prepare yourself for a large amount of noobiness)
I'm currently running a test NodeBB forum on a Microsoft Azure B0 instance (shared core, 768MB RAM) with Ubuntu. I host a small gaming community with about 50 members.
I have put in a mailer plugin, and when I get a verification email, it sends me to (localhost:4567) instead of (droidbotgaming.ga), due to the setup that I have with my firewall (traffic on 4567tcp comes out on 80tcp instead).
When I configure config.json with port 80, it doesn't allow me to access it with port 80 tcp forwarded.
My config.json: http://pastebin.com/ufPzdkEr
Create your own free reverse proxy with Azure Web Apps
This article explains how to use Azure Web Apps to create a free reverse proxy such that all requests to a certain web page actually serve content from somewhere else.
Tom SSL (tomssl.com)
Otherwise, our standard point of reference: https://docs.nodebb.org/en/latest/configuring/proxies.html