forked from mtusi2026/mtusi2026lab5
Принимать файл отдельно от обработки, чтобы задание переживало рестарт и повторную доставку.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
disk_free_limit.absolute = 50MB
|
||||
consumer_timeout = 3600000
|
||||
Reference in New Issue
Block a user