add parameter for endpoint protocols

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

backport: havana

Change-Id: Icf7cd49c7e7a99b873b861bff51a1317a563f2be
(cherry picked from commit 82e992e64b5fc4365d01fa5950e0d084ae017644)