From: Vincent Vanwaelscappel Date: Wed, 13 Sep 2023 09:58:53 +0000 (+0200) Subject: wip #6269 @1.5 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=db5359c8bf7ce00d6c56b01857197f5f953ab1d9;p=fluidbook-toolbox.git wip #6269 @1.5 --- diff --git a/app/Fluidbook/Farm.php b/app/Fluidbook/Farm.php index b8a39d12e..b281e7bfe 100644 --- a/app/Fluidbook/Farm.php +++ b/app/Fluidbook/Farm.php @@ -30,6 +30,7 @@ class Farm ['name' => 'isleofdogs', 'host' => 'paris.cubedesigners.com', 'port' => 9458, 'weight' => 2, 'region' => 'UE'], ['name' => 'jumanji', 'host' => 'paris.cubedesigners.com', 'port' => 9459, 'weight' => 2, 'region' => 'UE'], ['name' => 'kingkong', 'host' => 'kingkong.cubedesigners.com', 'weight' => 6, 'region' => 'US'], + ['name' => 'matrix', 'host' => 'matrix.cubedesigners.com', 'weight' => 2, 'region' => 'UE'], ]; public static function forceServer($server) diff --git a/app/Models/Traits/PublicationSettings.php b/app/Models/Traits/PublicationSettings.php index f2e165d54..300ae66ba 100644 --- a/app/Models/Traits/PublicationSettings.php +++ b/app/Models/Traits/PublicationSettings.php @@ -1945,13 +1945,15 @@ trait PublicationSettings { $this->addSettingField('section_downloads', FormSection::class, $this->__('Versions disponibles au téléchargement')); + $this->addSettingField('hosting_loadbalancer', Checkbox::class, $this->__('Hébergement "Load balancer"')); + foreach (self::getDownloadVersions() as $name => $downloadVersion) { $this->addSettingField('download_' . $name, Checkbox::class, $downloadVersion['label'], [ 'v2' => json_encode(['type' => 'boolean', 'editable' => true, 'default' => $downloadVersion['default'], 'label' => $downloadVersion['label'], 'grade' => 3]), 'default' => $downloadVersion['default'], ]); if ($downloadVersion['install']) { - $this->addSettingField('install_' . $name, ExternalPath::class, 'Installer sur un serveur externe', ['default' => '', 'servers_model' => FluidbookExternalInstallServer::class, 'when' => ['download_' . $name => 1]]); + $this->addSettingField('install_' . $name, ExternalPath::class, __('Installer sur un serveur externe'), ['default' => '', 'servers_model' => FluidbookExternalInstallServer::class, 'when' => ['download_' . $name => 1]]); } }