add parameter for endpoint protocols

This gives the ability to specify https endpoint for
internal and/or admin endpoints.

Change-Id: I9cc1525449ffd9b1439e6e5fcbf6731b8a7ee260
backport: havana
(cherry picked from commit 414c7ecec660103f6bcb29c8e99752ce7952a3b2)
Merge "add parameter for endpoint protocols" into stable/havana