forked from mtusi2026/mtusi2026lab4
63 lines
1.9 KiB
INI
63 lines
1.9 KiB
INI
global
|
|
log stdout format raw local0
|
|
maxconn 2048
|
|
|
|
defaults
|
|
log global
|
|
mode http
|
|
option httplog
|
|
timeout connect 500ms
|
|
timeout client 40s
|
|
timeout server 40s
|
|
timeout http-request 3s
|
|
timeout http-keep-alive 5s
|
|
timeout check 500ms
|
|
retries 0
|
|
|
|
resolvers docker
|
|
nameserver dns 127.0.0.11:53
|
|
accepted_payload_size 8192
|
|
resolve_retries 2
|
|
timeout resolve 1s
|
|
timeout retry 1s
|
|
hold valid 1s
|
|
hold obsolete 1s
|
|
hold nx 1s
|
|
|
|
frontend public
|
|
bind :8080
|
|
default_backend api
|
|
|
|
backend api
|
|
balance roundrobin
|
|
option httpchk
|
|
http-check send meth GET uri /health/ready ver HTTP/1.1 hdr Host api
|
|
http-check expect status 200
|
|
server-template replica 1-4 api:8080 check inter 500ms fall 2 rise 2 resolvers docker resolve-prefer ipv4 init-addr none
|
|
|
|
listen stats
|
|
bind :8404
|
|
stats enable
|
|
stats uri /stats
|
|
|
|
# MinIO is reachable only through this internal listener. Public port 9000 is
|
|
# never published. Block unsupported vulnerable features in the archived CE.
|
|
frontend private_s3
|
|
bind :9000
|
|
no log
|
|
acl unsigned_trailer req.hdr(x-amz-content-sha256) -i STREAMING-UNSIGNED-PAYLOAD-TRAILER
|
|
http-request deny deny_status 403 if unsigned_trailer
|
|
acl internal_storage path,url_dec -m beg -i /minio/storage /minio/peer /minio/grid /minio/bootstrap
|
|
http-request deny deny_status 403 if internal_storage
|
|
acl s3_select query,url_dec -m reg -i '(^|&)select([=&]|$)'
|
|
http-request deny deny_status 403 if s3_select
|
|
acl replication_header req.hdr(x-minio-source-replication-request) -m found
|
|
http-request deny deny_status 403 if replication_header
|
|
default_backend minio_private
|
|
|
|
backend minio_private
|
|
option httpchk
|
|
http-check send meth GET uri /minio/health/ready ver HTTP/1.1 hdr Host minio-backend
|
|
http-check expect status 200
|
|
server minio minio-backend:9000 check inter 1s resolvers docker init-addr none
|