ЛР3 - БПИ2303 - Стругов - на 4

This commit is contained in:
wanderinho
2026-11-10 15:19:31 +03:00
parent 0ab3a341aa
commit bdccb3ad7d
33 changed files with 3591 additions and 23 deletions
+26
View File
@@ -0,0 +1,26 @@
events { worker_connections 1024; }
http {
access_log /dev/stdout;
error_log /dev/stderr warn;
resolver 127.0.0.11 valid=2s ipv6=off;
upstream api_backends {
zone api_backends 64k;
server api:8080 resolve max_fails=0;
keepalive 16;
}
server {
listen 8080;
location / {
proxy_pass http://api_backends;
proxy_http_version 1.1;
proxy_set_header Connection "";
proxy_set_header Host $host;
proxy_connect_timeout 1s;
proxy_read_timeout 12s;
proxy_send_timeout 12s;
proxy_next_upstream error timeout http_502 http_503 http_504;
proxy_next_upstream_tries 2;
# POST is not transparently retried: client uses Idempotency-Key.
}
}
}