molnarg / node-http2

An HTTP/2 client and server implementation for node.js
MIT License
1.79k stars 187 forks source link

Nginx related question #187

Closed willin closed 8 years ago

willin commented 8 years ago

What is the relation about nginx http2 and node-http2?

server {
        listen       443 ssl spdy;
        server_name  example.com;
        # some config
        location / {
                proxy_set_header X-Real-IP $remote_addr;
                proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
                proxy_set_header Host $host;
                proxy_set_header X-NginX-Proxy true;
                proxy_pass http://127.0.0.1:8801/;
                proxy_redirect off;
        }
}

Previous HTTPS Config.

Can give an example using nginx and http2?

nwgh commented 8 years ago

I have no idea what the question is - there is no relationship between nginx and node-http2, nor do I understand what example you might want. Please reopen if you have more information.