Files
mtusi2026lab3/nginx/nginx.conf
T
2026-11-12 20:23:11 +03:00

23 lines
490 B
Nginx Configuration File

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;
}
}
}