Added support of multiple endpoints configurations

In some cases is required to setup few endpoints on different endpoints
with different configs.