Advertisement
Guest User

Untitled

a guest
Sep 17th, 2019
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.80 KB | None | 0 0
  1. [root@haproxynlb ~]# cat /etc/haproxy/haproxy.cfg
  2. global
  3. log /dev/log local0
  4. log 127.0.0.1 local2
  5. log /dev/log local1 notice
  6. chroot /var/lib/haproxy
  7. stats timeout 30s
  8. user haproxy
  9. group haproxy
  10. daemon
  11.  
  12. defaults
  13. log global
  14. mode http
  15. option httplog
  16. option dontlognull
  17. timeout connect 5000
  18. timeout client 50000
  19. timeout server 50000
  20.  
  21. frontend http_front
  22. bind *:80
  23. stats uri /haproxy?stats
  24. #specify port and certs
  25. bind *:443 ssl crt /etc/pki/tls/certs/haproxy.pem
  26.  
  27. backend http_back
  28. balance roundrobin
  29. server es2.uipathindia.in 192.168.3.16:443 check ssl verify none
  30. server es1.uipathindia.in 192.168.3.15:443 check ssl verify none
  31.  
  32.  
  33. listen elasticsearch-TCP-9200
  34. bind *:9200
  35. mode tcp
  36. option tcpka
  37. option tcplog
  38. option redispatch
  39. option httpchk GET /
  40. timeout server 15m
  41. balance roundrobin
  42. server elasticsearch-1 192.168.3.15:9200 check
  43. server elasticsearch-2 192.168.3.16:9200 check
  44. server elasticsearch-3 192.168.3.17:9200 check
  45.  
  46. #backend http_back
  47. # balance roundrobin
  48. # server IIS16 192.168.3.16:443 check ssl verify none
  49. # server IIS15 192.168.3.15:443 check ssl verify none
  50. #server IIS77 ser-blr-elastes.uipathindia.in:443 check ssl verify none
  51. #server IIS78 SER-B-INFRAORCH.uipathindia.in:443 check ssl verify none
  52. #server IIS77 192.168.2.77:443 check ssl verify none
  53. #server IIS78 192.168.2.78:443 check ssl verify none
  54.  
  55. listen stats
  56. bind *:8181
  57. stats enable
  58. stats uri /
  59. stats realm Haproxy\ Statistics
  60. stats auth username:passwordlisten stats
  61. bind *:8181
  62. stats enable
  63. stats uri /
  64. stats realm Haproxy\ Statistics
  65. stats auth haproxy:UIpath@123
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement