demandio / ember-prerender

Make your Ember.js web apps crawlable by rendering static HTML on the server.
MIT License
140 stars 13 forks source link

Connection Reset from facebook #30

Open marlonmantilla opened 9 years ago

marlonmantilla commented 9 years ago

Hey guys, I've setup ember-prerender in an nginx server and for some reason I get Curl Error : RECV_ERROR Recv failure: Connection reset by peer Is there anything else I have to do from nginx side ? I manage to setup ember prerender locally.

tehceh commented 9 years ago

To elaborate on this, ember-prerender closes the connection early to the client from remote sockets but not from local ones. To work around the problem, we had to deploy nginx as a reverse proxy in concert with our prerender instance, on the same machine. Typically we roll out HAProxy at our edge, so this is a bit more overhead to get things working.