mirror of
https://gitgud.io/fatchan/haproxy-protection.git
synced 2025-05-09 02:05:37 +00:00
Update README with new env vars
Remove dataplaneapi junk
This commit is contained in:
@@ -37,11 +37,6 @@ RUN set -eux; \
|
||||
; \
|
||||
rm -rf /var/lib/apt/lists/*; \
|
||||
\
|
||||
wget -O dataplaneapi_2.4.4_Linux_x86_64.tar.gz https://github.com/haproxytech/dataplaneapi/releases/download/v2.4.4/dataplaneapi_2.4.4_Linux_x86_64.tar.gz; \
|
||||
tar -zxvf dataplaneapi_2.4.4_Linux_x86_64.tar.gz; \
|
||||
chmod +x build/dataplaneapi; \
|
||||
cp build/dataplaneapi /usr/local/bin/; \
|
||||
\
|
||||
wget -O haproxy.tar.gz "$HAPROXY_URL"; \
|
||||
# echo "$HAPROXY_SHA256 *haproxy.tar.gz" | sha256sum -c; \
|
||||
mkdir -p /usr/src/haproxy; \
|
||||
|
@@ -1,29 +0,0 @@
|
||||
config_version = 2
|
||||
|
||||
name = "meet_bedbug"
|
||||
|
||||
mode = "single"
|
||||
|
||||
dataplaneapi {
|
||||
user "admin" {
|
||||
insecure = true
|
||||
password = "adminpwd"
|
||||
}
|
||||
|
||||
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"
|
||||
}
|
||||
}
|
@@ -13,10 +13,6 @@ defaults
|
||||
timeout client 50000ms
|
||||
timeout server 50000ms
|
||||
|
||||
program api
|
||||
command dataplaneapi -f /etc/haproxy/dataplaneapi.hcl --update-map-files
|
||||
no option start-on-reload
|
||||
|
||||
frontend http-in
|
||||
bind *:80
|
||||
|
||||
|
Reference in New Issue
Block a user