Restore way of passing in elasticsearch config