Embed the Websockify into Nginx
some codes are borrowed from Websockify C implementation
git clone https://github.com/tg123/websockify-nginx-module.git
cd path/to/nginx_source
./configure --add-module=/path/to/websockify-nginx-module/
make
make install
in your nginx.conf
location /websockify {
websockify_pass yourvncip:port
}
- visit http://kanaka.github.io/noVNC/noVNC/vnc.html in your browser,
- Host is your
nginx server
's ip - port is your
nginx server
's listening port - Click connect
-
websockify_buffer_size
: Default:32768
The buffer size used to store the encode/decode data. each websockify connection will cost
websockify_buffer_size
* 4 ( 1 upstream * 2 + 1 downstream * 2 ) addational memory -
websockify_read_timeout
: Default60s
proxy_read_timeout of websockify upstream
-
websockify_connect_timeout
: Default60s
proxy_connect_timeout of websockify upstream
-
websockify_send_timeout
: Default60s
proxy_send_timeout of websockify upstream
- 1.5.x (Tested on 1.5.9)
- 1.4.x (Tested on 1.4.4)