allow TLS and basic auth, and allow to specify URI