المشاريع
عرض على GitHub
nicokaiser/nginx-websocket-proxy
حول
وكيل WebSocket لـ nginx.
الأنظمة والبنية التحتيةالنمو المقاس للنجوم
- خلال 24 ساعة
- ٠
- خلال 7 أيام
- ٠
- خلال 15 يومًا
- ٠
- خلال شهر
- جارٍ جمع السجل
تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.
README.md
الأصلnginx WebSocket Proxy
As of version 1.4, nginx is capable of forwarding WebSocket requests, so it can be used as a reverse proxy for HTTP, HTTPS, WS and WSS.
Here are some simple example configuration snippets for WebSocket forwarding in nginx.
Requirements
- nginx 1.4.x or higher
- WebSocket and HTTP server running on
ws|http://localhost:8080
This is a typical scenario given by Engine.IO, Socket.IO, Primus, etc. which provide a WebSocket server with HTTP fallback.
Example Configs
- Simple WebSocket Proxy – forwards WS and HTTP requests to
ws|http://localhost:8080 - WebSocketSecure Proxy – forwards WSS and HTTPS requests to
ws|http://localhost:8080 - WebSocket Proxy with Path Rewriting – forwards
wss|https://ws.example.com/services/myservicetows|http://localhost:8080 - WebSocket Proxy with Load Balancing – like previous example, but with three backend servers, with one client always being forwarded to the same backend
See Also
- http://nginx.org/en/docs/http/websocket.html
- Nginx Server Configs – Great resource for nginx server config documentation
Author
Nico Kaiser
License
استكشف مشاريع مشابهة ومرتبطة
جارٍ التحميل…