Files
mtusi2026lab7-fork/infra/haproxy/s3-gate.cfg

31 lines
1.2 KiB
INI
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 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