Add env var example for maxconn and cache total-max-size

This commit is contained in:
Thomas Lynch
2023-10-19 21:34:02 +11:00
parent 1dd69fd924
commit 3f1852dd1b
2 changed files with 4 additions and 2 deletions

View File

@ -24,6 +24,8 @@ services:
- ../../Documents/dataplaneapi/build/dataplaneapi:/usr/local/bin/dataplaneapi
environment:
# These are the hcaptcha and recaptcha test keys, not leaking any dont worry :^)
- HAPROXY_MAXCONN=5000
- HAPROXY_CACHE_MB=500
- HCAPTCHA_SITEKEY=20000000-ffff-ffff-ffff-000000000002
- HCAPTCHA_SECRET=0x0000000000000000000000000000000000000000
#- RECAPTCHA_SECRET=6LeIxAcTAAAAAGG-vFI1TnRWxMZNFuojJ4WifJWe

View File

@ -1,6 +1,6 @@
global
daemon
maxconn 256
maxconn "${HAPROXY_MAXCONN}"
log stdout format raw local0 debug
lua-load /etc/haproxy/scripts/register-servers.lua
lua-load-per-thread /etc/haproxy/scripts/register-bot-check.lua
@ -158,7 +158,7 @@ frontend http-in
default_backend servers
cache basic_cache
total-max-size 250
total-max-size "${HAPROXY_CACHE_MB}"
max-object-size 31457280
max-age 86400
process-vary on