From d5a36b4ba1103eb0b07def2cfec9ca93b52f73b0 Mon Sep 17 00:00:00 2001 From: paladox Date: Sun, 10 Nov 2024 14:23:40 +0000 Subject: [PATCH] Randomly select mathoid host in wgMathMathMLUrl (#5731) Co-authored-by: github-actions --- GlobalSettings.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/GlobalSettings.php b/GlobalSettings.php index f968c13caa..d823979a8b 100644 --- a/GlobalSettings.php +++ b/GlobalSettings.php @@ -893,9 +893,16 @@ ]; // Mathoid +$mathoidHosts = [ + 'http://10.0.15.150:10044', + 'http://10.0.16.157:10044', + 'http://10.0.17.144:10044', + 'http://10.0.18.106:10044', +]; + $wgMathMathMLUrl = $beta ? 'http://10.0.15.118:10044' : - 'http://10.0.18.106:10044'; + $mathoidHosts[array_rand( $mathoidHosts )]; $wgMathSvgRenderer = 'mathoid'; // ConfirmEdit (hCaptcha)