Getting endpoint from configuration file