Parameterise domain

Because you might want to run the app somewhere else, like localhost.