feat-(lab3 started, X-Instance-ID, Idempotence-Key in send_message method added)

This commit is contained in:
2026-11-16 12:18:05 +03:00
parent 0ab3a341aa
commit fe9bebac90
46 changed files with 2117 additions and 3 deletions
+31
View File
@@ -0,0 +1,31 @@
worker_processes auto;
events {
worker_connections 1024;
}
http {
upstream backend{
server api:8080 max_fails=2 fail_timeout=10s;
}
server {
listen 80;
server_name localhost;
proxy_connect_timeout 5s;
proxy_read_timeout 30s;
location / {
proxy_pass http://backend;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
location /nginx-health {
access_log off;
return 200 "healthy\n";
add_header Content-Type text/plain;
}
}
}