From d97a5e312f6debc6e6643366cbf9872356a4fdd8 Mon Sep 17 00:00:00 2001 From: Mustaque Ahmed Date: Fri, 26 Sep 2025 20:57:54 +0530 Subject: [PATCH] revert: env name `_APP_STORAGE_S3_ENDPOINT` --- app/init/resources.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/app/init/resources.php b/app/init/resources.php index b944183d69..e76a473635 100644 --- a/app/init/resources.php +++ b/app/init/resources.php @@ -547,7 +547,7 @@ function getDevice(string $root, string $connection = ''): Device $accessSecret = ''; $bucket = ''; $region = ''; - $url = System::getEnv('_APP_CONNECTIONS_STORAGE', ''); + $url = System::getEnv('_APP_STORAGE_S3_ENDPOINT', ''); Console::log("@@@debug-mustaq url {$url}"); try { @@ -568,8 +568,11 @@ function getDevice(string $root, string $connection = ''): Device Console::log("@@@debug-mustaq connection device s3 {$bucketRoot}"); return new S3($bucketRoot, $accessKey, $accessSecret, $url, $region, $acl); } else { - Console::log("@@@debug-mustaq connection device AWS"); - return new S3($root, $accessKey, $accessSecret, $bucket, $region, $acl); + Console::log( + "@@@debug-mustaq connection device AWS " . + "root => {$root}\taccesskey => {$accessKey}\tsecret => {$accessSecret}\tregion => {$region}\tacl => {$acl}" + ); + return new AWS($root, $accessKey, $accessSecret, $bucket, $region, $acl); } // no break case STORAGE::DEVICE_DO_SPACES: