Add back dataplaneapi in anticipation of using it to control haproxy rather than haproxy-sdk runtime socket

This commit is contained in:
Thomas Lynch
2023-02-12 13:17:03 +11:00
parent 4e3beaf66d
commit 875e9e5edd
5 changed files with 53 additions and 13 deletions

27
haproxy/dataplaneapi.hcl Normal file
View File

@ -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"
}
}