Open
Description
I use your setup for docker containers. Looks respectable but since I rely on haproxy for my other projects I'd like to have my "own" common logging setup. Currently, there's no way to do it.
My request is to add extra configuration for:
- options,
- defaults,
- frontend,
- backend.,
Here's my proposal for addind extra configuration to those configuration sections.
easyhaproxy.wiki.host: wiki.example.org,wiki.example.org:1080
easyhaproxy.wiki.options.extra: |
stats socket /sockets/hadmin.sock mode 660 level admin
nbthread 16
easyhaproxy.wiki.defaults.extra: |
timeout connect 5s
timeout client 50s
timeout server 5s
maxconn 1000000
timeout client-fin 5s
unique-id-format %{+X}o\ %cp-%ci-%Ts-%H-%rt-%ms
unique-id-header X-Unique-ID
log-format "%ci:%cp [%tr] %ft %b/%s %TR/%Tw/%Tc/%Tr/%Ta %ST %B %CC %CS %tsc %ac/%fc/%bc/%sc/%rc %sq/%bq %hr %hs %{+Q}r %ID"
easyhaproxy.wiki.frontend.extra: |
acl wirki_blacklist src 10.20.30.0/24
tcp-request connection reject if !wiki_blacklist
easyhaproxy.wiki.backend.extra: |
acl wiki_burstable src 192.168.0.0/16
acl wiki_burstable src 10.0.0.0/8
acl wiki_burstable src 172.16.0.0/12
http-request track-sc0 src
http-request deny deny_status 429 if { sc_http_req_rate(0) gt 33 } !wiki_burstable
http-response add-header Connection close
Metadata
Metadata
Assignees
Labels
No labels