add parameter for endpoint protocols

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

Change-Id: I1f7d96693a5bc2140041658e77cc7920f9577eac
backport: havana
(cherry picked from commit 833c3845a28a169399bafe0c8dd4c492da993b7d)