mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-20 06:26:57 +00:00
bring Apache limits in sync with PHP limits
Signed-off-by: szaimen <szaimen@e.mail.de>
This commit is contained in:
parent
bfcbc41141
commit
2b5deb81f5
5 changed files with 18 additions and 2 deletions
|
|
@ -524,6 +524,11 @@ class ConfigurationManager
|
|||
return $this->GetEnvironmentalVariableOrConfig($envVariableName, $configName, $defaultValue);
|
||||
}
|
||||
|
||||
public function GetApacheMaxSize() : int {
|
||||
$uploadLimit = (int)rtrim($this->GetNextcloudUploadLimit(), 'G');
|
||||
return $uploadLimit * 1024 * 1024 * 1024;
|
||||
}
|
||||
|
||||
public function GetNextcloudMaxTime() : string {
|
||||
$envVariableName = 'NEXTCLOUD_MAX_TIME';
|
||||
$configName = 'nextcloud_max_time';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue