add missing global configs for master-worker mode and crt base

This commit is contained in:
Thomas Lynch
2024-06-30 22:36:54 +10:00
parent 5e60a42383
commit 53a679fc76
5 changed files with 7 additions and 8 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
tor/hidden_service/
haproxy/*.pem
haproxy/*.crt
haproxy/dataplaneapi

View File

@ -1,5 +1,8 @@
global
daemon
ca-base /etc/ssl/certs
crt-base /etc/ssl/private
master-worker
maxconn "${HAPROXY_MAXCONN}"
log stdout format raw local0 debug
lua-load /etc/haproxy/scripts/register-servers.lua
@ -13,6 +16,7 @@ global
defaults
log global
mode http
option dontlognull
option httplog
timeout connect 5000ms
timeout client 50000ms
@ -168,11 +172,6 @@ cache basic_cache
backend servers
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
backend bot_check_post_throttle

View File

@ -1,2 +1,2 @@
example.com asdf
localhost admin
localhost.com admin

View File

@ -1 +1 @@
localhost 127.0.0.1:81
localhost.com 127.0.0.1:81

View File

@ -1 +0,0 @@
0.0.0.0/0 admin