345d921 fix(verify-phase2)
This commit is contained in:
@@ -125,7 +125,10 @@ check_object_storage() {
|
||||
# S3_ENDPOINT umumnya hanya terjangkau dari jaringan Docker (mis.
|
||||
# http://minio:9000) → uji keterjangkauan dilakukan dari container (uji mc).
|
||||
# Di host kita cek port publik MinIO saja (informatif, bukan gate).
|
||||
local host_ep="$(sicabe_local_url "${S3_SCHEME:-http}" MINIO_HOST "${MINIO_PORT:-12900}")"
|
||||
# Bila S3_ENDPOINT berupa ALAMAT (IP/FQDN, mis. https://minio-api.sicabe.com:8443),
|
||||
# pakai APA ADANYA — termasuk port-nya — lewat sicabe_host_url. Tanpa ini, URL
|
||||
# penuh diprobe di port terbit lokal (12900) → WARN palsu.
|
||||
local host_ep="$(sicabe_host_url S3_ENDPOINT MINIO_HOST "${MINIO_PORT:-12900}" "${S3_SCHEME:-http}")"
|
||||
local host_code
|
||||
host_code=$(curl -sk -o /dev/null -w "%{http_code}" --max-time 8 \
|
||||
"${host_ep}/minio/health/live" 2>/dev/null || true)
|
||||
|
||||
Reference in New Issue
Block a user