This commit is contained in:
Getlles
2026-11-09 12:40:25 +03:00
parent b750ef2722
commit 234e2a2fd7
7 changed files with 251 additions and 103 deletions
+19
View File
@@ -0,0 +1,19 @@
events { worker_connections 1024; }
http {
upstream messenger_api {
server api-1:8080;
server api-2:8080;
}
server {
listen 8080;
location / {
proxy_pass http://messenger_api;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
}
}
}