Skip to content

Instantly share code, notes, and snippets.

@behrad
Created July 18, 2015 09:19
Show Gist options
  • Save behrad/445d37314d5d4142c21b to your computer and use it in GitHub Desktop.
Save behrad/445d37314d5d4142c21b to your computer and use it in GitHub Desktop.
haproxy-angular-riak
# this config needs haproxy-1.1.28 or haproxy-1.2.1
global
maxconn 4096
user haproxy
group haproxy
daemon
defaults
mode http
option http-server-close
retries 3
timeout connect 5000ms
timeout client 5000ms
timeout server 5000ms
frontend http-in
bind *:80
acl is_riak_uri path_beg /riak
acl is_riak_uri path_beg /buckets
use_backend riak if is_riak_uri
default_backend web
backend web
server server1 localhost:8080 maxconn 32
backend riak
server riak1 localhost:8098 maxconn 32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment