config: support protocol env var.