get gateway configuration from config file