лабораторная работа 7

This commit is contained in:
2026-11-18 01:02:09 +03:00
parent 20afc2c790
commit b035b50dbd
298 changed files with 28830 additions and 109 deletions
+30
View File
@@ -0,0 +1,30 @@
# lab7: TCP-passthrough к S3 API SeaweedFS (TLS завершает сам SeaweedFS — сквозное шифрование).
#
# Зачем: `weed server -s3` открывает рядом с S3 API свой gRPC-порт (s3.port + 10000) на том же
# адресе, что и S3, и выключить его флагом нельзя (-s3.port.grpc=0 = порт по умолчанию). Этот
# gRPC не аутентифицирован (в т.ч. перенастройка identities S3), поэтому SeaweedFS привязан к
# 127.0.0.1 своего сетевого namespace (-s3.ip.bind=127.0.0.1), а в сеть storage наружу выдан
# ТОЛЬКО порт S3 API через этот gate (network_mode: service:s3). Gate не видит содержимого (TLS),
# он лишь пересылает TCP 0.0.0.0:8333 -> 127.0.0.1:8334.
global
log stdout format raw local0 info
maxconn 512
defaults
mode tcp
log global
timeout connect 2s
timeout client 120s
timeout server 120s
frontend s3_api
bind :8333
default_backend s3_local
backend s3_local
server s3 127.0.0.1:8334
frontend gate_health
mode http
bind 127.0.0.1:8405
monitor-uri /gate-health