Add back dataplaneapi in anticipation of using it to control haproxy rather than haproxy-sdk runtime socket
parent
4e3beaf66d
commit
875e9e5edd
5 changed files with 53 additions and 13 deletions
@ -0,0 +1,27 @@ |
||||
config_version = 2 |
||||
name = "basedflare" |
||||
mode = "single" |
||||
|
||||
dataplaneapi { |
||||
host = "127.0.0.1" |
||||
port = 2001 |
||||
user "admin" { |
||||
insecure = true |
||||
password = "admin" |
||||
} |
||||
transaction { |
||||
transaction_dir = "/tmp/haproxy" |
||||
} |
||||
advertised {} |
||||
} |
||||
|
||||
haproxy { |
||||
config_file = "/etc/haproxy/haproxy.cfg" |
||||
haproxy_bin = "/usr/local/sbin/haproxy" |
||||
reload { |
||||
reload_delay = 5 |
||||
reload_cmd = "service haproxy reload" |
||||
restart_cmd = "service haproxy restart" |
||||
reload_strategy = "custom" |
||||
} |
||||
} |
@ -1,2 +1,2 @@ |
||||
localhost 1 |
||||
localhost/captcha 2 |
||||
localhost/test 2 |
||||
|
Loading…
Reference in new issue