Advertisement
Guest User

Untitled

a guest
Mar 29th, 2021
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.92 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: public_service_http (public_service_http)
  41. frontend public_service_http
  42. bind 0.0.0.0:80 name 0.0.0.0:80
  43. mode http
  44. option http-keep-alive
  45. default_backend acme_challenge_backend
  46. # tuning options
  47. timeout client 30s
  48.  
  49. # logging options
  50. # ACL: find_acme_challenge
  51. acl acl_605e1a292ddce1.15865947 path_beg -i /.well-known/acme-challenge/
  52. # ACL: no_find_acme_challenge
  53. acl acl_6061a61b811977.92979045 path_beg -i /.well-known/acme-challenge/
  54. # ACL: no_HTTPS
  55. acl acl_605e848931a523.42844100 req.proto_http
  56. # ACL: cond_host_matches_host2_example.com
  57. acl acl_605e858f8de9e6.77623103 hdr(host) -i host2.example.com
  58. # ACL: cond_host_matches_host3_example.com
  59. acl acl_605e85820c35d5.14821142 hdr(host) -i host3.example.com
  60. # ACL: cond_host_matches_host1_example.com
  61. acl acl_605e8558014977.72403767 hdr(host) -i host1.example.com
  62.  
  63. # ACTION: redirect_acme_challenges
  64. use_backend acme_challenge_backend if acl_605e1a292ddce1.15865947
  65. # ACTION: rule_redirect_http_https
  66. http-request redirect scheme https code 301 if !acl_6061a61b811977.92979045 acl_605e848931a523.42844100
  67. # ACTION: rule_no_host_match
  68. http-request deny unless acl_605e858f8de9e6.77623103 || acl_605e85820c35d5.14821142 || acl_605e8558014977.72403767 || acl_605e1a292ddce1.15865947
  69. # ERROR FILE: Unknown_FQDN
  70. errorfile 403 /tmp/haproxy/errorfiles/605e84df732dd0.89785772.txt
  71.  
  72.  
  73. # Frontend (DISABLED): public_service_https (public_service_https)
  74.  
  75. # Backend: acme_challenge_backend (Added by Let's Encrypt plugin)
  76. backend acme_challenge_backend
  77. # health checking is DISABLED
  78. mode http
  79. balance source
  80. # stickiness
  81. stick-table type ip size 50k expire 30m
  82. stick on src
  83. # tuning options
  84. timeout connect 30s
  85. timeout server 30s
  86. http-reuse safe
  87. server acme_challenge_host 127.0.0.1:43580
  88.  
  89. # Backend: backed_pool_host1 (backed_pool_host1)
  90. backend backed_pool_host1
  91. # health checking is DISABLED
  92. mode http
  93. balance source
  94. # stickiness
  95. stick-table type ip size 50k expire 30m
  96. stick on src
  97. # tuning options
  98. timeout connect 30s
  99. timeout server 30s
  100. http-reuse safe
  101. server real_server_host1 host1.example.com:80
  102.  
  103. # Backend: backed_pool_host3 (backed_pool_host3)
  104. backend backed_pool_host3
  105. # health checking is DISABLED
  106. mode http
  107. balance source
  108. # stickiness
  109. stick-table type ip size 50k expire 30m
  110. stick on src
  111. # tuning options
  112. timeout connect 30s
  113. timeout server 30s
  114. http-reuse safe
  115. server real_server_host3 host3.example.com:80
  116.  
  117. # Backend: backed_pool_host2 (backed_pool_host2)
  118. backend backed_pool_host2
  119. # health checking is DISABLED
  120. mode http
  121. balance source
  122. # stickiness
  123. stick-table type ip size 50k expire 30m
  124. stick on src
  125. # tuning options
  126. timeout connect 30s
  127. timeout server 30s
  128. http-reuse safe
  129. server real_server_host2 host2.example.com:80
  130.  
  131.  
  132.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement