mirror of
https://gitgud.io/fatchan/haproxy-protection.git
synced 2025-05-09 02:05:37 +00:00
Add env var example for maxconn and cache total-max-size
This commit is contained in:
@ -24,6 +24,8 @@ services:
|
|||||||
- ../../Documents/dataplaneapi/build/dataplaneapi:/usr/local/bin/dataplaneapi
|
- ../../Documents/dataplaneapi/build/dataplaneapi:/usr/local/bin/dataplaneapi
|
||||||
environment:
|
environment:
|
||||||
# These are the hcaptcha and recaptcha test keys, not leaking any dont worry :^)
|
# 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_SITEKEY=20000000-ffff-ffff-ffff-000000000002
|
||||||
- HCAPTCHA_SECRET=0x0000000000000000000000000000000000000000
|
- HCAPTCHA_SECRET=0x0000000000000000000000000000000000000000
|
||||||
#- RECAPTCHA_SECRET=6LeIxAcTAAAAAGG-vFI1TnRWxMZNFuojJ4WifJWe
|
#- RECAPTCHA_SECRET=6LeIxAcTAAAAAGG-vFI1TnRWxMZNFuojJ4WifJWe
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
global
|
global
|
||||||
daemon
|
daemon
|
||||||
maxconn 256
|
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
|
||||||
lua-load-per-thread /etc/haproxy/scripts/register-bot-check.lua
|
lua-load-per-thread /etc/haproxy/scripts/register-bot-check.lua
|
||||||
@ -158,7 +158,7 @@ frontend http-in
|
|||||||
default_backend servers
|
default_backend servers
|
||||||
|
|
||||||
cache basic_cache
|
cache basic_cache
|
||||||
total-max-size 250
|
total-max-size "${HAPROXY_CACHE_MB}"
|
||||||
max-object-size 31457280
|
max-object-size 31457280
|
||||||
max-age 86400
|
max-age 86400
|
||||||
process-vary on
|
process-vary on
|
||||||
|
Reference in New Issue
Block a user