Skip to content

Instantly share code, notes, and snippets.

@igrigorik
Created July 30, 2010 05:15
Show Gist options
  • Save igrigorik/499944 to your computer and use it in GitHub Desktop.
Save igrigorik/499944 to your computer and use it in GitHub Desktop.
defaults
mode http
clitimeout 600000 # maximum inactivity time on the client side
srvtimeout 600000 # maximum inactivity time on the server side
timeout connect 8000 # maximum time to wait for a connection attempt to a server to succeed
balance roundrobin # each server is used in turns, according to assigned weight
frontend http
bind :8080
default_backend websocket
backend websocket
no option httpclose
server websocket0 127.0.0.1:10000 weight 1 maxconn 400
server websocket1 127.0.0.1:10001 weight 1 maxconn 400
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment