chore(minio): Ingress disabled and removed bucket and region logic

This commit is contained in:
2025-05-06 01:46:03 +02:00
parent a224907328
commit e8421beff3
5 changed files with 18 additions and 38 deletions

View File

@@ -10,24 +10,17 @@ CONFIG="/data/options.json"
# The jq command is used to parse the JSON file and extract the values
ACCESS_KEY=$(jq -r .access_key "$CONFIG")
SECRET_KEY=$(jq -r .secret_key "$CONFIG")
REGION=$(jq -r .region "$CONFIG")
BUCKET=$(jq -r .bucket "$CONFIG")
# Configure MinIO environment variables
# These variables are used to set up the MinIO server
# The ACCESS_KEY and SECRET_KEY are used for authentication
# The REGION is used to set the region for the MinIO server
# The BUCKET is the name of the bucket to be created
export MINIO_ROOT_USER="$ACCESS_KEY"
export MINIO_ROOT_PASSWORD="$SECRET_KEY"
export MINIO_REGION="${REGION:-us-east-1}"
# Check if the bucket exists, if not create it
DATA_DIR="/data/$BUCKET"
mkdir -p "$DATA_DIR"
mkdir -p /data
echo "[INFO] Starting MinIO (user: $MINIO_ROOT_USER, region: $MINIO_REGION, bucket: $BUCKET)"
echo "[INFO] Starting MinIO (user: $MINIO_ROOT_USER)"
# Autodetect if TLS certs are present
# If they are, launch with HTTPS, otherwise use HTTP