From a67336f6dbae3af43cc3167fad8e5f5cba111b47 Mon Sep 17 00:00:00 2001 From: ArchOrange1 <93661534+ArchOrange1@users.noreply.github.com> Date: Sun, 26 Oct 2025 14:31:18 +0100 Subject: [PATCH] Add ability to define API Port --- minio/egg-minio-s3.json | 12 +++++++++++- minio/minio.sh | 4 ++-- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/minio/egg-minio-s3.json b/minio/egg-minio-s3.json index dc78a14..f1ac276 100644 --- a/minio/egg-minio-s3.json +++ b/minio/egg-minio-s3.json @@ -4,7 +4,7 @@ "version": "PTDL_v2", "update_url": null }, - "exported_at": "2025-10-02T23:22:38+02:00", + "exported_at": "2025-10-26T13:21:49+00:00", "name": "Minio S3", "author": "accounts@bofanodes.io", "description": "MinIO is a cloud storage server compatible with Amazon S3, released under Apache License v2. As an object store, MinIO can store unstructured data such as photos, videos, log files, backups and container images. The maximum size of an object is 5TB.", @@ -37,6 +37,16 @@ "user_editable": true, "rules": "required|string|in:normal,rotate,update", "field_type": "text" + }, + { + "name": "API Port", + "description": "The port to be used by the API", + "env_variable": "API_PORT", + "default_value": "0", + "user_viewable": true, + "user_editable": true, + "rules": "required|string|max:5", + "field_type": "text" } ] } \ No newline at end of file diff --git a/minio/minio.sh b/minio/minio.sh index 473cc9f..f91bc2c 100644 --- a/minio/minio.sh +++ b/minio/minio.sh @@ -63,8 +63,8 @@ echo "Your New Secret Key is: $(tput setaf 2)$MINIO_ROOT_PASSWORD" echo "Your Old Access Key is: $(tput setaf 3)$MINIO_ROOT_USER_OLD" echo "Your Old Access Key is: $(tput setaf 3)$MINIO_ROOT_PASSWORD_OLD" echo "$(tput setaf 2)Booting..." -./minio server data --console-address ":$SERVER_PORT" +./minio server data --console-address ":$SERVER_PORT" --address ":$API_PORT" else echo "$(tput setaf 2)Booting..." -./minio server data --console-address ":$SERVER_PORT" +./minio server data --console-address ":$SERVER_PORT" --address ":$API_PORT" fi