refactored elasticsearch upstream to make it internal to container nginx