add parameter for endpoint protocols

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

Change-Id: I5f936593f83ce8f00338709e5864f7d00f9d0d8c
backport: havana