ugly per-environment server domain & port setting