27 lines
792 B
Plaintext
27 lines
792 B
Plaintext
# Historical configuration used for evidence/track1/raw from 2026-10-14.
|
|
# Current compose.benchmark.yaml uses haproxy.benchmark.cfg.
|
|
upstream messenger_api {
|
|
zone messenger_api 64k;
|
|
resolver 127.0.0.11 valid=2s ipv6=off;
|
|
resolver_timeout 1s;
|
|
least_conn;
|
|
server api:8080 resolve max_fails=1 fail_timeout=2s;
|
|
keepalive 16;
|
|
}
|
|
|
|
server {
|
|
listen 8080;
|
|
|
|
location / {
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header Connection "";
|
|
proxy_connect_timeout 1s;
|
|
proxy_read_timeout 5s;
|
|
proxy_next_upstream error timeout http_502 http_503 http_504;
|
|
proxy_next_upstream_tries 2;
|
|
proxy_pass http://messenger_api;
|
|
}
|
|
}
|