mirror of
https://github.com/nextcloud/all-in-one.git
synced 2026-02-04 13:06:53 +00:00
Make nextcloud_memory_limit an attribute
Signed-off-by: Pablo Zmdl <pablo@nextcloud.com>
This commit is contained in:
parent
ea5a6d983d
commit
6ee312e7a8
3 changed files with 6 additions and 7 deletions
|
|
@ -635,11 +635,10 @@ class ConfigurationManager
|
|||
get => $this->GetEnvironmentalVariableOrConfig('NEXTCLOUD_UPLOAD_LIMIT', 'nextcloud_upload_limit', '16G');
|
||||
set { $this->set('nextcloud_upload_limit', $value); }
|
||||
}
|
||||
public function GetNextcloudMemoryLimit() : string {
|
||||
$envVariableName = 'NEXTCLOUD_MEMORY_LIMIT';
|
||||
$configName = 'nextcloud_memory_limit';
|
||||
$defaultValue = '512M';
|
||||
return $this->GetEnvironmentalVariableOrConfig($envVariableName, $configName, $defaultValue);
|
||||
|
||||
public string $nextcloud_memory_limit {
|
||||
get => $this->GetEnvironmentalVariableOrConfig('NEXTCLOUD_MEMORY_LIMIT', 'nextcloud_memory_limit', '512M');
|
||||
set { $this->set('nextcloud_memory_limit', $value); }
|
||||
}
|
||||
|
||||
public function GetApacheMaxSize() : int {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue