make discovery base URL configurable

According to #3