diff --git a/app/config/variables.php b/app/config/variables.php index 6543d9041..5b30e1612 100644 --- a/app/config/variables.php +++ b/app/config/variables.php @@ -499,7 +499,7 @@ return [ 'description' => '', 'variables' => [ [ - 'name' => '_APP_FUNCTIONS_DEPLOYMENT_LIMIT', + 'name' => '_APP_FUNCTIONS_SIZE_LIMIT', 'description' => 'The maximum size deployment in bytes. The default value is 30MB.', 'introduction' => '0.13.0', 'default' => '30000000', diff --git a/app/controllers/api/functions.php b/app/controllers/api/functions.php index 0c89be941..e933bb844 100644 --- a/app/controllers/api/functions.php +++ b/app/controllers/api/functions.php @@ -489,7 +489,7 @@ App::post('/v1/functions/:functionId/deployments') $file = $request->getFiles('code'); $fileExt = new FileExt([FileExt::TYPE_GZIP]); - $fileSizeValidator = new FileSize(App::getEnv('_APP_FUNCTIONS_DEPLOYMENT_LIMIT', 0)); + $fileSizeValidator = new FileSize(App::getEnv('_APP_FUNCTIONS_SIZE_LIMIT', 0)); $upload = new Upload(); if (empty($file)) { diff --git a/app/views/install/compose.phtml b/app/views/install/compose.phtml index bd52ab95f..6451d67eb 100644 --- a/app/views/install/compose.phtml +++ b/app/views/install/compose.phtml @@ -100,7 +100,7 @@ services: - _APP_STORAGE_ANTIVIRUS - _APP_STORAGE_ANTIVIRUS_HOST - _APP_STORAGE_ANTIVIRUS_PORT - - _APP_FUNCTIONS_DEPLOYMENT_LIMIT + - _APP_FUNCTIONS_SIZE_LIMIT - _APP_FUNCTIONS_TIMEOUT - _APP_FUNCTIONS_BUILD_TIMEOUT - _APP_FUNCTIONS_CONTAINERS diff --git a/docker-compose.yml b/docker-compose.yml index 4da0fc1f5..6a36fe058 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -127,7 +127,7 @@ services: - _APP_SMTP_PASSWORD - _APP_USAGE_STATS - _APP_STORAGE_LIMIT - - _APP_FUNCTIONS_DEPLOYMENT_LIMIT + - _APP_FUNCTIONS_SIZE_LIMIT - _APP_FUNCTIONS_TIMEOUT - _APP_FUNCTIONS_BUILD_TIMEOUT - _APP_FUNCTIONS_CONTAINERS