Seperate the host that the server is bound to from the one that's exposed in the frontend

This helps when the server is being accessed through a proxy and .py scripts and templates should access the server through the proxied name.