Skip to content

jmcintyre/websockify-nginx-module

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Websockify port for Nginx

Embed the Websockify into Nginx

some codes are borrowed from Websockify C implementation

Installation

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

Uasge

in your nginx.conf

location /websockify {
    websockify_pass yourvncip:port
}
  1. visit http://kanaka.github.io/noVNC/noVNC/vnc.html in your browser,
  2. Host is your nginx server's ip
  3. port is your nginx server's listening port
  4. Click connect

Options

  • 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: Default 60s

    proxy_read_timeout of websockify upstream

  • websockify_connect_timeout: Default 60s

    proxy_connect_timeout of websockify upstream

  • websockify_send_timeout: Default 60s

    proxy_send_timeout of websockify upstream

Nginx Compatibility

  • 1.5.x (Tested on 1.5.9)
  • 1.4.x (Tested on 1.4.4)

About

Embed websockify into Nginx

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 93.7%
  • Perl 6.3%