move host config to nginx (still backwards compatible-ish)