Add in support for properly passing in the public hostname.

Needed to get backend apps to know it's real name.