Стабилизация HTTPS-проверок и перезапуска стенда

This commit is contained in:
EgorAnti
2026-11-26 18:53:22 +03:00
parent 60fa12ce6e
commit 1ee35c54a7
5 changed files with 48 additions and 14 deletions
+35 -4
View File
@@ -73,8 +73,8 @@ http {
proxy_request_buffering on;
proxy_connect_timeout 500ms;
proxy_send_timeout 4s;
proxy_read_timeout 4s;
proxy_send_timeout 15s;
proxy_read_timeout 15s;
proxy_next_upstream error timeout http_502 http_503 http_504 non_idempotent;
proxy_next_upstream_tries 2;
}
@@ -95,6 +95,37 @@ http {
proxy_next_upstream off;
}
# Argon2id is intentionally CPU/memory expensive and may exceed the
# general four-second budget on a CPU-limited cold replica. These POSTs
# are never replayed by the LB because both create durable state.
location = /api/v1/users {
proxy_pass https://api_backend;
proxy_http_version 1.1;
proxy_set_header Connection "";
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_connect_timeout 500ms;
proxy_send_timeout 15s;
proxy_read_timeout 15s;
proxy_next_upstream off;
}
location = /api/v1/auth/sessions {
proxy_pass https://api_backend;
proxy_http_version 1.1;
proxy_set_header Connection "";
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_connect_timeout 500ms;
proxy_send_timeout 15s;
proxy_read_timeout 15s;
proxy_next_upstream off;
}
location / {
proxy_pass https://api_backend;
proxy_http_version 1.1;
@@ -104,8 +135,8 @@ http {
proxy_set_header X-Forwarded-Proto $scheme;
proxy_connect_timeout 500ms;
proxy_send_timeout 4s;
proxy_read_timeout 4s;
proxy_send_timeout 15s;
proxy_read_timeout 15s;
# No sticky sessions. Failed/unready peers are retried elsewhere.
proxy_next_upstream error timeout http_502 http_503 http_504;