Make service region configurable

This commit is contained in:
biondizzle
2025-06-05 10:14:46 -04:00
parent b7c8699ae6
commit bf98b52571
4 changed files with 20 additions and 8 deletions

View File

@@ -164,7 +164,7 @@ class ConsoleApiController extends AbstractController
$bucketName = $data['name'] ?? null;
$ownerId = $data['owner_id'] ?? null;
$region = $data['region'] ?? 'us-east-1';
$region = $data['region'] ?? ($_ENV['APP_REGION'] ?? 'us-east-1');
if (!$bucketName || !$ownerId) {
return new JsonResponse(['error' => 'Missing bucket name or owner'], 400);