From cf86289ca0549e526c4ba5621abb27d21e2666c0 Mon Sep 17 00:00:00 2001 From: Damodar Lohani Date: Tue, 22 Feb 2022 06:31:06 +0000 Subject: [PATCH] function deployment limit env --- .env | 1 + app/config/variables.php | 9 +++++++++ app/views/install/compose.phtml | 1 + docker-compose.yml | 1 + 4 files changed, 12 insertions(+) diff --git a/.env b/.env index f3ee0ddef5..755bcb0359 100644 --- a/.env +++ b/.env @@ -34,6 +34,7 @@ _APP_SMTP_SECURE= _APP_SMTP_USERNAME= _APP_SMTP_PASSWORD= _APP_STORAGE_LIMIT=30000000 +_APP_FUNCTIONS_DEPLOYMENT_LIMIT=30000000 _APP_FUNCTIONS_TIMEOUT=900 _APP_FUNCTIONS_BUILD_TIMEOUT=900 _APP_FUNCTIONS_CONTAINERS=10 diff --git a/app/config/variables.php b/app/config/variables.php index 771c080202..82f9ac32c0 100644 --- a/app/config/variables.php +++ b/app/config/variables.php @@ -498,6 +498,15 @@ return [ 'category' => 'Functions', 'description' => '', 'variables' => [ + [ + 'name' => '_APP_FUNCTIONS_DEPLOYMENT_LIMIT', + 'description' => 'The maximum size deployment in bytes.', + 'introduction' => '0.13.0', + 'default' => '30000000', + 'required' => false, + 'question' => '', + 'filter' => '' + ], [ 'name' => '_APP_FUNCTIONS_TIMEOUT', 'description' => 'The maximum number of seconds allowed as a timeout value when creating a new function. The default value is 900 seconds.', diff --git a/app/views/install/compose.phtml b/app/views/install/compose.phtml index 039e1c875f..bd52ab95f9 100644 --- a/app/views/install/compose.phtml +++ b/app/views/install/compose.phtml @@ -100,6 +100,7 @@ services: - _APP_STORAGE_ANTIVIRUS - _APP_STORAGE_ANTIVIRUS_HOST - _APP_STORAGE_ANTIVIRUS_PORT + - _APP_FUNCTIONS_DEPLOYMENT_LIMIT - _APP_FUNCTIONS_TIMEOUT - _APP_FUNCTIONS_BUILD_TIMEOUT - _APP_FUNCTIONS_CONTAINERS diff --git a/docker-compose.yml b/docker-compose.yml index d5af584aa2..569112e921 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -127,6 +127,7 @@ services: - _APP_SMTP_PASSWORD - _APP_USAGE_STATS - _APP_STORAGE_LIMIT + - _APP_FUNCTIONS_DEPLOYMENT_LIMIT - _APP_FUNCTIONS_TIMEOUT - _APP_FUNCTIONS_BUILD_TIMEOUT - _APP_FUNCTIONS_CONTAINERS