]> _ Git - fluidbook-toolbox.git/commitdiff
wip #6269 @1.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 13 Sep 2023 09:58:53 +0000 (11:58 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Wed, 13 Sep 2023 09:58:53 +0000 (11:58 +0200)
app/Fluidbook/Farm.php
app/Models/Traits/PublicationSettings.php

index b8a39d12eb9bef8cb7337894d67823515bb290d6..b281e7bfe15f9dd096bae57e9c6285b2fd5a5147 100644 (file)
@@ -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)
index f2e165d5490a7fb5837a512580b81e8234779e20..300ae66ba33ec433baa34600251067935ebc2522 100644 (file)
@@ -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]]);
             }
         }