mirror of
https://gitgud.io/fatchan/haproxy-protection.git
synced 2025-05-09 02:05:37 +00:00
Add back dataplaneapi in anticipation of using it to control haproxy rather than haproxy-sdk runtime socket
This commit is contained in:
27
haproxy/dataplaneapi.hcl
Normal file
27
haproxy/dataplaneapi.hcl
Normal 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"
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user