Extension:WindowsAzureStorage/sv
From Linux Web Expert
WindowsAzureStorage Utgivningsstatus: stabil |
|
---|---|
File:Windows Azure logo.png | |
Genomförande | Fillager |
Beskrivning | Allows MediaWiki to use Windows Azure as the file backend |
Författare | Thai Phan, Markus Glaser |
MediaWiki | |
Licenser | GNU General Public License 2.0 eller senare |
Ladda ner | |
Quarterly downloads | Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin'). |
Public wikis using | Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin'). |
Översätt tillägget WindowsAzureStorage om det finns tillgängligt på translatewiki.net |
The WindowsAzureStorage extension enables MediaWiki to store uploaded files to the Windows Azure Storage service.
Installation
- <translate> [[<tvar name=2>Special:ExtensionDistributor/WindowsAzureStorage/sv</tvar>|Download]] and move the extracted <tvar name=name>
WindowsAzureStorage/sv
</tvar> folder to your <tvar name=ext>extensions/
</tvar> directory.</translate>
<translate> Developers and code contributors should install the extension [[<tvar name=git>Special:MyLanguage/Download from Git</tvar>|from Git]] instead, using:</translate>cd extensions/
git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/WindowsAzureStorage%2Fsv - <translate> Add the following code at the bottom of your <tvar name=1>LocalSettings.php </tvar> file:</translate>
wfLoadExtension( 'WindowsAzureStorage/sv' );
- Configure as required.
- File:OOjs UI icon check-constructive.svg <translate> Done</translate> – <translate> Navigate to <tvar name=special>Special:Version</tvar> on your wiki to verify that the extension is successfully installed.</translate>
Konfigurering
Add the following to the end of the "LocalSettings.php" file to start using your Windows Azure Storage account as the file backend for your wiki. You will need to change your_azure_storage_account and your_azure_storage_account_key to the relevant values.
$wgFileBackends[] = [
'name' => 'localAzure',
'class' => 'WindowsAzureFileBackend',
'lockManager' => 'nullLockManager',
'azureAccount' => 'your_azure_storage_account',
'azureKey' => 'your_azure_storage_account_key'
];
$wgLocalFileRepo = [
'class' => 'LocalRepo',
'name' => 'local',
'backend' => 'localAzure',
'scriptDirUrl' => $wgScriptPath,
'scriptExtension' => $wgScriptExtension,
'url' => $wgScriptPath . '/img_auth.php',
'hashLevels' => 0,
'deletedHashLevels' => 0,
'zones' => array(
'public' => [ 'container' => 'public' ],
'thumb' => [ 'container' => 'thumb' ],
'temp' => [ 'container' => 'temp' ],
'deleted' => [ 'container' => 'deleted' ]
]
];
$wgImgAuthPublicTest = false;