mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-20 06:26:57 +00:00
allow to adjust the PHP memory limit
Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
parent
a1eac7dbbc
commit
588f9a36e7
8 changed files with 24 additions and 0 deletions
|
|
@ -528,6 +528,13 @@ class ConfigurationManager
|
|||
return $this->GetEnvironmentalVariableOrConfig($envVariableName, $configName, $defaultValue);
|
||||
}
|
||||
|
||||
public function GetNextcloudMemoryLimit() : string {
|
||||
$envVariableName = 'NEXTCLOUD_MEMORY_LIMIT';
|
||||
$configName = 'nextcloud_memory_limit';
|
||||
$defaultValue = '512M';
|
||||
return $this->GetEnvironmentalVariableOrConfig($envVariableName, $configName, $defaultValue);
|
||||
}
|
||||
|
||||
public function GetApacheMaxSize() : int {
|
||||
$uploadLimit = (int)rtrim($this->GetNextcloudUploadLimit(), 'G');
|
||||
return $uploadLimit * 1024 * 1024 * 1024;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue