Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- global
- log 127.0.0.1 local1 debug
- maxconn 4096
- chroot /usr/share/haproxy
- uid 99
- gid 99
- daemon
- tune.ssl.default-dh-param 2048
- defaults
- log global
- mode http
- option httplog
- option dontlognull
- retries 3
- option redispatch
- option http-server-close
- maxconn 2000
- timeout connect 5000
- timeout client 50000
- timeout server 50000
- frontend Listener
- bind *:8080 ssl crt /usr/local/etc/nginx/test.pem
- acl is_websocket hdr_dom(host) -i sparkgateway.tsaukpaetra.com
- acl is_manager hdr_dom(host) -i manager.remote.tsaukpaetra.com
- use_backend SparkGateway if is_websocket
- use_backend manager if is_manager
- default_backend www
- backend www
- timeout server 30s
- server www1 127.0.0.1:8000
- backend SparkGateway
- timeout server 600s
- timeout tunnel 30s
- server SparkGateway 127.0.0.1:8000
- backend manager
- timeout server 30s
- # http-request add-header X-Proto https
- server manager 192.168.1.170:443 check ssl verify none
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement