mirror of
https://github.com/nextcloud/all-in-one.git
synced 2026-02-04 04:56:52 +00:00
Make nextcloud_max_time an attribute
Signed-off-by: Pablo Zmdl <pablo@nextcloud.com>
This commit is contained in:
parent
6ee312e7a8
commit
6c991873db
3 changed files with 5 additions and 7 deletions
|
|
@ -130,7 +130,7 @@ $app->get('/containers', function (Request $request, Response $response, array $
|
|||
'nextcloud_datadir' => $configurationManager->nextcloud_datadir_mount,
|
||||
'nextcloud_mount' => $configurationManager->nextcloud_mount,
|
||||
'nextcloud_upload_limit' => $configurationManager->nextcloud_upload_limit,
|
||||
'nextcloud_max_time' => $configurationManager->GetNextcloudMaxTime(),
|
||||
'nextcloud_max_time' => $configurationManager->nextcloud_max_time,
|
||||
'nextcloud_memory_limit' => $configurationManager->nextcloud_memory_limit,
|
||||
'is_dri_device_enabled' => $configurationManager->isDriDeviceEnabled(),
|
||||
'is_nvidia_gpu_enabled' => $configurationManager->isNvidiaGpuEnabled(),
|
||||
|
|
|
|||
|
|
@ -646,11 +646,9 @@ class ConfigurationManager
|
|||
return $uploadLimit * 1024 * 1024 * 1024;
|
||||
}
|
||||
|
||||
public function GetNextcloudMaxTime() : string {
|
||||
$envVariableName = 'NEXTCLOUD_MAX_TIME';
|
||||
$configName = 'nextcloud_max_time';
|
||||
$defaultValue = '3600';
|
||||
return $this->GetEnvironmentalVariableOrConfig($envVariableName, $configName, $defaultValue);
|
||||
public string $nextcloud_max_time {
|
||||
get => $this->GetEnvironmentalVariableOrConfig('NEXTCLOUD_MAX_TIME', 'nextcloud_max_time', '3600');
|
||||
set { $this->set('nextcloud_max_time', $value); }
|
||||
}
|
||||
|
||||
public function GetBorgRetentionPolicy() : string {
|
||||
|
|
|
|||
|
|
@ -584,7 +584,7 @@ readonly class DockerActionManager {
|
|||
'DOCKER_SOCKET_PROXY_ENABLED' => $this->configurationManager->isDockerSocketProxyEnabled ? 'yes' : '',
|
||||
'NEXTCLOUD_UPLOAD_LIMIT' => $this->configurationManager->nextcloud_upload_limit,
|
||||
'NEXTCLOUD_MEMORY_LIMIT' => $this->configurationManager->nextcloud_memory_limit,
|
||||
'NEXTCLOUD_MAX_TIME' => $this->configurationManager->GetNextcloudMaxTime(),
|
||||
'NEXTCLOUD_MAX_TIME' => $this->configurationManager->nextcloud_max_time,
|
||||
'BORG_RETENTION_POLICY' => $this->configurationManager->GetBorgRetentionPolicy(),
|
||||
'FULLTEXTSEARCH_JAVA_OPTIONS' => $this->configurationManager->GetFulltextsearchJavaOptions(),
|
||||
'NEXTCLOUD_TRUSTED_CACERTS_DIR' => $this->configurationManager->GetTrustedCacertsDir(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue