Abstract out some mirror settings to permit overrides in env.