add parameter for endpoint protocols

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

backport: havana

Change-Id: Icf7cd49c7e7a99b873b861bff51a1317a563f2be
Merge "add parameter for endpoint protocols"