NGINX to reverse proxy websockets AND enable SSL (wss:)?

mac2022-06-30  80

Just to note that nginx has now support for Websockets on the release 1.3.13. Example of use:

location /websocket/ { proxy_pass ​http://backend_host; proxy_http_version 1.1; proxy_set_header Upgrade $http_upgrade; proxy_set_header Connection "upgrade"; proxy_read_timeout 86400; }

 https://stackoverflow.com/questions/12102110/nginx-to-reverse-proxy-websockets-and-enable-ssl-wss

转载于:https://www.cnblogs.com/powerwu/articles/11459134.html

最新回复(0)