Advertisement
Guest User

HAProxy Configuration

a guest
May 23rd, 2021
333
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.30 KB | None | 0 0
  1. #
  2. # Automatically generated configuration.
  3. # Do not edit this file manually.
  4. #
  5.  
  6. global
  7. uid 80
  8. gid 80
  9. chroot /var/haproxy
  10. daemon
  11. stats socket /var/run/haproxy.socket group proxy mode 775 level admin
  12. nbproc 1
  13. nbthread 1
  14. tune.ssl.default-dh-param 2048
  15. spread-checks 2
  16. tune.chksize 16384
  17. tune.bufsize 16384
  18. tune.lua.maxmem 0
  19. log /var/run/log local0 info
  20.  
  21. defaults
  22. log global
  23. option redispatch -1
  24. timeout client 30s
  25. timeout connect 30s
  26. timeout server 30s
  27. retries 3
  28. default-server init-addr last,libc
  29.  
  30. # autogenerated entries for ACLs
  31.  
  32.  
  33. # autogenerated entries for config in backends/frontends
  34.  
  35. # autogenerated entries for stats
  36.  
  37.  
  38.  
  39.  
  40. # Frontend: intranet-services ()
  41. frontend intranet-services
  42. bind 0.0.0.0:443 name 0.0.0.0:443 ssl crt-list /tmp/haproxy/ssl/60a9c83e598678.02633444.certlist
  43. mode http
  44. option http-keep-alive
  45. # tuning options
  46. timeout client 30s
  47.  
  48. # logging options
  49. # ACL: host_alpha
  50. acl acl_60a9cee2c809a8.97104359 path_beg -i /esxi/alpha/
  51.  
  52. # ACTION: use-esxi-alpha
  53. use_backend alpha if acl_60a9cee2c809a8.97104359
  54.  
  55. # Backend: acme_challenge_backend (Added by Let's Encrypt plugin)
  56. backend acme_challenge_backend
  57. # health checking is DISABLED
  58. mode http
  59. balance source
  60. # stickiness
  61. stick-table type ip size 50k expire 30m
  62. stick on src
  63. # tuning options
  64. timeout connect 30s
  65. timeout server 30s
  66. http-reuse safe
  67. server acme_challenge_host 127.0.0.1:43580
  68.  
  69. # Backend: alpha ()
  70. backend alpha
  71. # health checking is DISABLED
  72. mode http
  73. balance source
  74. # stickiness
  75. stick-table type ip size 50k expire 30m
  76. stick on src
  77. # tuning options
  78. timeout connect 30s
  79. timeout server 30s
  80. # ACL: host_alpha
  81. acl acl_60a9cee2c809a8.97104359 path_beg -i /esxi/alpha/
  82.  
  83. # ACTION: path-rewrite-esxi-alpha
  84. http-request set-path %[path,regsub(^/esxi/alpha/?,/)] if acl_60a9cee2c809a8.97104359
  85. http-reuse safe
  86. server alpha 172.16.1.9:443 ssl alpn h2,http/1.1 verify none
  87.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement