This commit is contained in:
caramelteawithmint
2026-11-12 20:23:11 +03:00
parent 0ab3a341aa
commit 01d737e076
27 changed files with 1700 additions and 28 deletions
+23
View File
@@ -0,0 +1,23 @@
events {
worker_connections 1024;
}
http {
upstream api_backend {
server api1:8080;
server api2:8080;
}
server {
listen 80;
location / {
proxy_pass http://api_backend;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_next_upstream error timeout http_502 http_503 http_504;
proxy_connect_timeout 5s;
proxy_read_timeout 30s;
}
}
}