From a24b405aa9a0351284dfb1b310358fbf279a8ecd Mon Sep 17 00:00:00 2001 From: paladox Date: Sun, 19 Nov 2023 22:48:32 -0500 Subject: [PATCH] Disable file uploads temporarily (#5377) --- GlobalSettings.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/GlobalSettings.php b/GlobalSettings.php index 9b0406c696..8b79de25e4 100644 --- a/GlobalSettings.php +++ b/GlobalSettings.php @@ -653,3 +653,10 @@ $wgMathMathMLUrl = 'http://[2a10:6740::6:504]:10044/'; $wgPropagateErrors = false; + +// Disble ImportDump requests and uploads due to swift outage +$wgSpecialPages['RequestImportDump'] = DisabledSpecialPage::getCallback( 'RequestImportDump', 'Currently ImportDump requests cannot be processed due to ongoing issues with our file storage' ); +$wgSpecialPages['RequestImportDumpQueue'] = DisabledSpecialPage::getCallback( 'RequestImportDumpQueue', 'Currently ImportDump requests cannot be processed due to ongoing issues with our file storage' ); +$wgRevokePermissions['*']['upload'] = true; +$wgRevokePermissions['*']['movefile'] = true; +$wgUploadMaintenance = true;