add localhost proxy for nginx

elasticsearch only lets you listen to one ip address at a time which does not bode well for being available on localhost