Принимать файл отдельно от обработки, чтобы задание переживало рестарт и повторную доставку.

This commit is contained in:
2026-11-06 22:43:34 +03:00
parent 276dbdad8a
commit 6e512e3978
32 changed files with 3832 additions and 33 deletions
+33
View File
@@ -0,0 +1,33 @@
worker_processes auto;
error_log /dev/stderr warn;
pid /tmp/nginx.pid;
events {
worker_connections 1024;
}
http {
access_log off;
client_max_body_size 12m;
proxy_http_version 1.1;
proxy_set_header Connection "";
gzip off;
upstream messenger_api {
server api-1:8080 max_fails=0;
server api-2:8080 max_fails=0;
}
server {
listen 8080;
location / {
proxy_pass http://messenger_api;
proxy_connect_timeout 1s;
proxy_send_timeout 60s;
proxy_read_timeout 60s;
proxy_next_upstream error timeout http_502 http_503 non_idempotent;
proxy_next_upstream_tries 2;
proxy_next_upstream_timeout 3s;
}
}
}
+2
View File
@@ -0,0 +1,2 @@
disk_free_limit.absolute = 50MB
consumer_timeout = 3600000