Skip to content

Instantly share code, notes, and snippets.

@reggi
Created January 5, 2013 09:27
Show Gist options
  • Select an option

  • Save reggi/4460733 to your computer and use it in GitHub Desktop.

Select an option

Save reggi/4460733 to your computer and use it in GitHub Desktop.
global
maxconn 4096
user nobody
daemon
defaults
mode http
frontend all 0.0.0.0:80
timeout client 86400000
default_backend www_nodejs
acl is_websocket hdr(upgrade) -i websocket
acl is_websocket hdr_beg(host) -i ws
use_backend www_nodejs if is_websocket
backend www_nodejs
option forwardfor
timeout server 86400000
timeout connect 4000
server nodejs 127.0.0.1:3000 weight 1 maxconn 10000 check
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment