spdy-http2 / node-spdy

SPDY server on Node.js
2.8k stars 196 forks source link

server push trough nginx reverse proxy #203

Closed hdf closed 9 years ago

hdf commented 9 years ago

As it says on the tin. I have successfully gotten my project to use server push, now I would like for this functionality to work trough an nginx reverse proxy. The problem is, that the response object doesn't have a push property if connecting trough nginx. Is it supposed to be like that? Am I asking for the impossible?

hdf commented 9 years ago

OK, found the problem. Nginx connects to the upstream server through http 1.0 SSL, not SPDY, so this is an nginx issue. There is no nginx configuration option for this. Nginx currently does not support SPDY for backends. So, no server push trough nginx reverse proxy.

motss commented 8 years ago

No workaround?

hdf commented 8 years ago

nginx developer (Maxim Dounin) confirms, that there are no plans for nginx to support upstream http2: https://www.ruby-forum.com/topic/6873270#1170325 So the only "workaround" I see, is not to use nginx, if you want Server Push on your node app.

motss commented 8 years ago

:+1: Thank you for the source.