如何在HAPROXY中为TCP模式覆盖forwardfor

时间:2018-07-30 11:21:19

标签: https tcp load-balancing haproxy

Haproxy默认设置为显示

defaults
    log global
    maxconn 64000
    option http-server-close
    option httplog
    option forwardfor
    option contstats
    timeout connect         5000ms
    timeout client          30000ms
    timeout server          30000ms
    timeout tunnel          3600000ms
    timeout http-keep-alive 500ms
    timeout http-request    5000ms
    timeout queue           30000ms

对于特定的安全前端,我可以覆盖dafault forwardfor选项,因为TCP模式不允许。

frontend  secured
   bind *:443
   mode  tcp
   option tcplog
   default_backend      app

0 个答案:

没有答案