mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-20 06:26:57 +00:00
fix exposing containers
Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
parent
eaabc8e4b0
commit
cb980f9e84
3 changed files with 17 additions and 18 deletions
|
|
@ -77,6 +77,17 @@ class ContainerDefinitionFetcher
|
|||
|
||||
$ports = new ContainerPorts();
|
||||
foreach ($entry['ports'] as $value) {
|
||||
|
||||
if ($value['port_number'] === '%APACHE_PORT%') {
|
||||
$value['port_number'] = $this->configurationManager->GetApachePort();
|
||||
} elseif ($value['port_number'] === '%TALK_PORT%') {
|
||||
$value['port_number'] = $this->configurationManager->GetTalkPort();
|
||||
}
|
||||
|
||||
if ($value['ip_binding'] === '%APACHE_IP_BINDING%') {
|
||||
$value['ip_binding'] = $this->configurationManager->GetApacheIPBinding();
|
||||
}
|
||||
|
||||
$ports->AddPort(
|
||||
new ContainerPort(
|
||||
$value['port_number'],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue