From 477ce95b9279df1645ee47d8cf55372dddde2aca Mon Sep 17 00:00:00 2001 From: hogweed1 Date: Mon, 2 Nov 2026 01:26:40 +1000 Subject: [PATCH] well, --- files/angie/lb1.guaranteedstruggle.host.conf | 29 ++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/files/angie/lb1.guaranteedstruggle.host.conf b/files/angie/lb1.guaranteedstruggle.host.conf index 2db43ce..8d6e48c 100644 --- a/files/angie/lb1.guaranteedstruggle.host.conf +++ b/files/angie/lb1.guaranteedstruggle.host.conf @@ -399,4 +399,33 @@ server { root /usr/share/angie/html; } +} + +upstream ceph_rgw_backend { + # Сюда вписываем все 6 ваших мини-ПК на порт 7480 + server 192.168.0.71:7480 max_fails=3 fail_timeout=5s; + server 192.168.0.72:7480 max_fails=3 fail_timeout=5s; + server 192.168.0.73:7480 max_fails=3 fail_timeout=5s; + server 192.168.0.74:7480 max_fails=3 fail_timeout=5s; + server 192.168.0.75:7480 max_fails=3 fail_timeout=5s; + server 192.168.0.89:7480 max_fails=3 fail_timeout=5s; # Замените IP на точные, если отличаются +} + +server { + listen 80; # Позже можно закрыть на 443 с сертификатом от acme.sh + server_name s3.guaranteedstruggle.host; + + # Жизненно важные настройки для S3 паркетов и бэкапов + client_max_body_size 0; # Убираем лимит на размер загружаемых объектов в десятки ГБ + proxy_request_buffering off; # Отключаем буферизацию, чтобы файлы лились в Ceph потоком + proxy_buffering off; + + proxy_set_header Host $http_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 / { + proxy_pass http://ceph_rgw_backend; + } } \ No newline at end of file