Skip to content

Commit

Permalink
Randomly select mathoid host in wgMathMathMLUrl (#5731)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions <[email protected]>
  • Loading branch information
paladox and github-actions authored Nov 10, 2024
1 parent 621d1a0 commit d5a36b4
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion GlobalSettings.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d5a36b4

Please sign in to comment.