mirror of
https://gitgud.io/fatchan/haproxy-protection.git
synced 2025-05-09 02:05:37 +00:00
add missing global configs for master-worker mode and crt base
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,3 +1,4 @@
|
|||||||
tor/hidden_service/
|
tor/hidden_service/
|
||||||
haproxy/*.pem
|
haproxy/*.pem
|
||||||
haproxy/*.crt
|
haproxy/*.crt
|
||||||
|
haproxy/dataplaneapi
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
global
|
global
|
||||||
daemon
|
daemon
|
||||||
|
ca-base /etc/ssl/certs
|
||||||
|
crt-base /etc/ssl/private
|
||||||
|
master-worker
|
||||||
maxconn "${HAPROXY_MAXCONN}"
|
maxconn "${HAPROXY_MAXCONN}"
|
||||||
log stdout format raw local0 debug
|
log stdout format raw local0 debug
|
||||||
lua-load /etc/haproxy/scripts/register-servers.lua
|
lua-load /etc/haproxy/scripts/register-servers.lua
|
||||||
@ -13,6 +16,7 @@ global
|
|||||||
defaults
|
defaults
|
||||||
log global
|
log global
|
||||||
mode http
|
mode http
|
||||||
|
option dontlognull
|
||||||
option httplog
|
option httplog
|
||||||
timeout connect 5000ms
|
timeout connect 5000ms
|
||||||
timeout client 50000ms
|
timeout client 50000ms
|
||||||
@ -168,11 +172,6 @@ cache basic_cache
|
|||||||
|
|
||||||
backend servers
|
backend servers
|
||||||
balance leastconn
|
balance leastconn
|
||||||
|
|
||||||
# old method, only supports single backend per host/domain
|
|
||||||
#use-server %[req.hdr(host),lower,map(/etc/haproxy/map/backends.map)] if TRUE
|
|
||||||
|
|
||||||
# new method, load balance to multiple servers with lua
|
|
||||||
use-server %[lua.get_server_names] if TRUE
|
use-server %[lua.get_server_names] if TRUE
|
||||||
|
|
||||||
backend bot_check_post_throttle
|
backend bot_check_post_throttle
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
example.com asdf
|
example.com asdf
|
||||||
localhost admin
|
localhost.com admin
|
||||||
|
@ -1 +1 @@
|
|||||||
localhost 127.0.0.1:81
|
localhost.com 127.0.0.1:81
|
||||||
|
@ -1 +0,0 @@
|
|||||||
0.0.0.0/0 admin
|
|
||||||
|
Reference in New Issue
Block a user