Make service region configurable
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user