feat: port lab3 implementation

This commit is contained in:
kk10
2026-10-31 11:54:18 +03:00
parent ec540a1a72
commit 27af30c903
83 changed files with 5195 additions and 6 deletions
+31
View File
@@ -0,0 +1,31 @@
events {
worker_connections 4096;
}
http {
resolver 127.0.0.11 valid=2s ipv6=off;
server {
listen 8080;
location ~ ^/api/v1/chats/[^/]+/messages$ {
set $backend http://api:8080;
proxy_pass $backend;
proxy_connect_timeout 1s;
proxy_read_timeout 6s;
proxy_next_upstream error timeout http_500 http_502 http_503 non_idempotent;
proxy_next_upstream_tries 2;
}
location / {
set $backend http://api:8080;
proxy_pass $backend;
proxy_connect_timeout 1s;
proxy_read_timeout 6s;
proxy_next_upstream error timeout http_500 http_502 http_503;
proxy_next_upstream_tries 2;
}
}
}