Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- defaults
- log 127.0.0.1:514 local1 debug
- # on client connection if policy file can be requested
- # from the same host on port 843.
- # You cannot use different port here.
- frontend flash_policy
- bind 0.0.0.0:843
- mode tcp
- default_backend nodejs_flashpolicy
- # Main frontend
- frontend proxy
- bind 0.0.0.0:80
- bind 0.0.0.0:8443
- mode http
- option httplog
- # allow for many connections, with long timeout
- maxconn 200000
- timeout client 86400000
- # default to webapp backend
- default_backend webapp
- #websockets
- acl is_websocket path_beg /socket.io
- acl is_websocket hdr(Upgrade) -i WebSocket
- acl is_websocket hdr_beg(Host) -i ws
- use_backend websocket if is_websocket
- backend webapp
- mode http
- option httplog
- option httpclose
- server cherrypy1 localhost:7000 check
- backend websocket
- mode http
- option httplog
- # long timeout
- timeout server 86400000
- timeout queue 5000
- timeout connect 86400000
- # check frequently to allow restarting
- # the node backend
- #timeout check 1s
- # add X-Forwarded-For
- option forwardfor
- # Do not use httpclose (= client and server
- # connections get closed), since it will close
- # Websockets connections
- no option httpclose
- # Use "option http-server-close" to preserve
- # client persistent connections while handling
- # every incoming request individually, dispatching
- # them one after another to servers, in HTTP close mode
- option http-server-close
- option forceclose
- # just one node server at :8000
- server node1 localhost:12000 maxconn 2000 check
- backend nodejs_flashpolicy
- mode tcp
- server node1 localhost:10843 maxconn 2000 check
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement