forked from mtusi2026/mtusi2026lab4
Реализовать lab4 на оценку 4: SeaweedFS, вложения и согласованность БД/S3.
Перенесён стенд lab3 (API, Redis-сессии, идемпотентность, HAProxy, реплики API). Добавлены приватный bucket SeaweedFS с отдельным ключом API, загрузка PNG/JPEG с лимитами и полной проверкой, компенсация и reconciler, плавная остановка API, тесты и evidence.
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
# S3 gateway sidecar (lab4). Runs in the network namespace of the `s3` service:
|
||||
# SeaweedFS listens on 127.0.0.1 only, this proxy publishes just the S3 HTTP API
|
||||
# as s3:9000 on the internal `storage` network. Master/volume/filer UIs and the
|
||||
# unauthenticated gRPC ports (1xxxx) stay unreachable from other containers.
|
||||
global
|
||||
maxconn 512
|
||||
log stdout format raw local0
|
||||
|
||||
defaults
|
||||
mode tcp
|
||||
log global
|
||||
option tcplog
|
||||
timeout connect 3s
|
||||
timeout client 60s
|
||||
timeout server 60s
|
||||
|
||||
frontend s3_api
|
||||
bind *:9000
|
||||
default_backend seaweed_s3
|
||||
|
||||
backend seaweed_s3
|
||||
server s3 127.0.0.1:8333
|
||||
Reference in New Issue
Block a user