Skip to content

Commit 891cc2a

Browse files
committed
working on websockets page
1 parent c21b0cf commit 891cc2a

File tree

4 files changed

+58
-1
lines changed

4 files changed

+58
-1
lines changed

all.html

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4616,6 +4616,26 @@ <h2>JavaScript client libraries</h2>
46164616
client-side WebSockets implementation.</p>
46174617
</li>
46184618
</ul>
4619+
<h2>Websockets with Nginx</h2>
4620+
<p>Nginx officially supports WebSocket proxying as of
4621+
<a href="http://nginx.com/blog/websocket-nginx/">version 1.3</a>. However, you have
4622+
to configure the Upgrade and Connection headers to ensure requests are
4623+
passed through Nginx to your WSGI server. It can be tricky to set this up
4624+
the first time. The following resources are helpful for setting up the
4625+
configuration properly.</p>
4626+
<ul>
4627+
<li>
4628+
<p>Nginx has <a href="http://nginx.org/en/docs/http/websocket.html">an official page for WebSocket proxying</a>.</p>
4629+
</li>
4630+
<li>
4631+
<p><a href="http://blog.martinfjordvald.com/2013/02/websockets-in-nginx/">WebSockets in Nginx</a>
4632+
walks through the Nginx WebSockets configuration directives.</p>
4633+
</li>
4634+
<li>
4635+
<p><a href="https://chrislea.com/2013/02/23/proxying-websockets-with-nginx/">Proxying WebSockets with Nginx</a>
4636+
shows how to proxy with Socket.io.</p>
4637+
</li>
4638+
</ul>
46194639
<h2>WebSockets resources</h2>
46204640
<ul>
46214641
<li>

feeds/all.atom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<feed xmlns="http://www.w3.org/2005/Atom"><title>Matt Makai</title><link href="http://www.fullstackpython.com/" rel="alternate"></link><link href="http://www.fullstackpython.com/feeds/all.atom.xml" rel="self"></link><id>http://www.fullstackpython.com/</id><updated>2014-12-29T12:46:57Z</updated></feed>
2+
<feed xmlns="http://www.w3.org/2005/Atom"><title>Matt Makai</title><link href="http://www.fullstackpython.com/" rel="alternate"></link><link href="http://www.fullstackpython.com/feeds/all.atom.xml" rel="self"></link><id>http://www.fullstackpython.com/</id><updated>2014-12-30T11:14:23Z</updated></feed>

source/content/pages/12-next/1201-websockets.markdown

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,23 @@ long polling or were not implemented by all browsers.
4444
client-side WebSockets implementation.
4545

4646

47+
## Websockets with Nginx
48+
Nginx officially supports WebSocket proxying as of
49+
[version 1.3](http://nginx.com/blog/websocket-nginx/). However, you have
50+
to configure the Upgrade and Connection headers to ensure requests are
51+
passed through Nginx to your WSGI server. It can be tricky to set this up
52+
the first time. The following resources are helpful for setting up the
53+
configuration properly.
54+
55+
* Nginx has [an official page for WebSocket proxying](http://nginx.org/en/docs/http/websocket.html).
56+
57+
* [WebSockets in Nginx](http://blog.martinfjordvald.com/2013/02/websockets-in-nginx/)
58+
walks through the Nginx WebSockets configuration directives.
59+
60+
* [Proxying WebSockets with Nginx](https://chrislea.com/2013/02/23/proxying-websockets-with-nginx/)
61+
shows how to proxy with Socket.io.
62+
63+
4764
## WebSockets resources
4865
* The official W3C
4966
[candidate draft for WebSockets API](http://www.w3.org/TR/websockets/)

websockets.html

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,26 @@ <h2>JavaScript client libraries</h2>
6464
client-side WebSockets implementation.</p>
6565
</li>
6666
</ul>
67+
<h2>Websockets with Nginx</h2>
68+
<p>Nginx officially supports WebSocket proxying as of
69+
<a href="http://nginx.com/blog/websocket-nginx/">version 1.3</a>. However, you have
70+
to configure the Upgrade and Connection headers to ensure requests are
71+
passed through Nginx to your WSGI server. It can be tricky to set this up
72+
the first time. The following resources are helpful for setting up the
73+
configuration properly.</p>
74+
<ul>
75+
<li>
76+
<p>Nginx has <a href="http://nginx.org/en/docs/http/websocket.html">an official page for WebSocket proxying</a>.</p>
77+
</li>
78+
<li>
79+
<p><a href="http://blog.martinfjordvald.com/2013/02/websockets-in-nginx/">WebSockets in Nginx</a>
80+
walks through the Nginx WebSockets configuration directives.</p>
81+
</li>
82+
<li>
83+
<p><a href="https://chrislea.com/2013/02/23/proxying-websockets-with-nginx/">Proxying WebSockets with Nginx</a>
84+
shows how to proxy with Socket.io.</p>
85+
</li>
86+
</ul>
6787
<h2>WebSockets resources</h2>
6888
<ul>
6989
<li>

0 commit comments

Comments
 (0)