mirror of
https://github.com/nextcloud/all-in-one.git
synced 2026-02-04 04:56:52 +00:00
Camelize property aio_community_containers => aioCommunityContainers
Signed-off-by: Pablo Zmdl <pablo@nextcloud.com>
This commit is contained in:
parent
b499001501
commit
c4aa148bff
4 changed files with 5 additions and 5 deletions
|
|
@ -138,7 +138,7 @@ $app->get('/containers', function (Request $request, Response $response, array $
|
||||||
'is_docker_socket_proxy_enabled' => $configurationManager->isDockerSocketProxyEnabled,
|
'is_docker_socket_proxy_enabled' => $configurationManager->isDockerSocketProxyEnabled,
|
||||||
'is_whiteboard_enabled' => $configurationManager->isWhiteboardEnabled,
|
'is_whiteboard_enabled' => $configurationManager->isWhiteboardEnabled,
|
||||||
'community_containers' => $configurationManager->listAvailableCommunityContainers(),
|
'community_containers' => $configurationManager->listAvailableCommunityContainers(),
|
||||||
'community_containers_enabled' => $configurationManager->aio_community_containers,
|
'community_containers_enabled' => $configurationManager->aioCommunityContainers,
|
||||||
'bypass_container_update' => $bypass_container_update,
|
'bypass_container_update' => $bypass_container_update,
|
||||||
]);
|
]);
|
||||||
})->setName('profile');
|
})->setName('profile');
|
||||||
|
|
|
||||||
|
|
@ -41,7 +41,7 @@ readonly class ContainerDefinitionFetcher {
|
||||||
$data = json_decode((string)file_get_contents(DataConst::GetContainersDefinitionPath()), true, 512, JSON_THROW_ON_ERROR);
|
$data = json_decode((string)file_get_contents(DataConst::GetContainersDefinitionPath()), true, 512, JSON_THROW_ON_ERROR);
|
||||||
|
|
||||||
$additionalContainerNames = [];
|
$additionalContainerNames = [];
|
||||||
foreach ($this->configurationManager->aio_community_containers as $communityContainer) {
|
foreach ($this->configurationManager->aioCommunityContainers as $communityContainer) {
|
||||||
if ($communityContainer !== '') {
|
if ($communityContainer !== '') {
|
||||||
$path = DataConst::GetCommunityContainersDirectory() . '/' . $communityContainer . '/' . $communityContainer . '.json';
|
$path = DataConst::GetCommunityContainersDirectory() . '/' . $communityContainer . '/' . $communityContainer . '.json';
|
||||||
$additionalData = json_decode((string)file_get_contents($path), true, 512, JSON_THROW_ON_ERROR);
|
$additionalData = json_decode((string)file_get_contents($path), true, 512, JSON_THROW_ON_ERROR);
|
||||||
|
|
|
||||||
|
|
@ -108,7 +108,7 @@ readonly class ConfigurationController {
|
||||||
$enabledCC[] = $item;
|
$enabledCC[] = $item;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$this->configurationManager->aio_community_containers = $enabledCC;
|
$this->configurationManager->aioCommunityContainers = $enabledCC;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isset($request->getParsedBody()['delete_collabora_dictionaries'])) {
|
if (isset($request->getParsedBody()['delete_collabora_dictionaries'])) {
|
||||||
|
|
|
||||||
|
|
@ -178,7 +178,7 @@ class ConfigurationManager
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public array $aio_community_containers {
|
public array $aioCommunityContainers {
|
||||||
get => explode(' ', $this->get('aio_community_containers', ''));
|
get => explode(' ', $this->get('aio_community_containers', ''));
|
||||||
set { $this->set('aio_community_containers', implode(' ', $value)); }
|
set { $this->set('aio_community_containers', implode(' ', $value)); }
|
||||||
}
|
}
|
||||||
|
|
@ -1092,7 +1092,7 @@ class ConfigurationManager
|
||||||
// Allow to get local ip-address of database container which allows to talk to it even in host mode (the container that requires this needs to be started first then)
|
// Allow to get local ip-address of database container which allows to talk to it even in host mode (the container that requires this needs to be started first then)
|
||||||
'AIO_DATABASE_HOST' => gethostbyname('nextcloud-aio-database'),
|
'AIO_DATABASE_HOST' => gethostbyname('nextcloud-aio-database'),
|
||||||
// Allow to get local ip-address of caddy container and add it to trusted proxies automatically
|
// Allow to get local ip-address of caddy container and add it to trusted proxies automatically
|
||||||
'CADDY_IP_ADDRESS' => in_array('caddy', $this->aio_community_containers, true) ? gethostbyname('nextcloud-aio-caddy') : '',
|
'CADDY_IP_ADDRESS' => in_array('caddy', $this->aioCommunityContainers, true) ? gethostbyname('nextcloud-aio-caddy') : '',
|
||||||
'WHITEBOARD_ENABLED' => $this->isWhiteboardEnabled ? 'yes' : '',
|
'WHITEBOARD_ENABLED' => $this->isWhiteboardEnabled ? 'yes' : '',
|
||||||
default => $this->GetRegisteredSecret($placeholder),
|
default => $this->GetRegisteredSecret($placeholder),
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue