My first basic loadBalancer

This commit is contained in:
2026-01-29 19:05:51 +02:00
commit 5e9b137d3f
7 changed files with 333 additions and 0 deletions

22
files/nginx.conf Normal file
View File

@@ -0,0 +1,22 @@
events {
worker_connections 1024;
}
http {
upstream backend {
server app-1:3001;
server app-2:3002;
server app-3:3003;
}
server {
listen 80;
location / {
proxy_pass http://backend;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
}
}