feat(infra): add nginx load balancer and two api replicas

This commit is contained in:
kk10
2026-10-17 23:44:15 +03:00
parent 59b06f5ec7
commit 3e825aae59
2 changed files with 33 additions and 3 deletions
+19
View File
@@ -0,0 +1,19 @@
events {}
http {
resolver 127.0.0.11 valid=2s ipv6=off;
server {
listen 8080;
location / {
set $backend http://api:8080;
proxy_pass $backend;
proxy_connect_timeout 1s;
proxy_read_timeout 6s;
proxy_next_upstream error timeout http_502 http_503;
proxy_next_upstream_tries 2;
}
}
}