Erweiterung:WindowsAzureStorage
![]() Freigabestatus: stabil |
|
---|---|
![]() |
|
Einbindung | Datei-Repositorium |
Beschreibung | Allows MediaWiki to use Windows Azure as the file backend |
Autor(en) | Thai Phan, Markus Glaser |
Letzte Version | 1.2.0 |
MediaWiki | >= 1.34.0 |
Lizenz | GNU General Public License 2.0 oder neuer |
Herunterladen | |
Quarterly downloads | 7 (Ranked 166th) |
Übersetze die WindowsAzureStorage-Erweiterung, wenn sie auf translatewiki.net verfügbar ist | |
The WindowsAzureStorage extension enables MediaWiki to store uploaded files to the Windows Azure Storage service.
Installation
- Die Erweiterung herunterladen und die Datei(en) in ein Verzeichnis namens
WindowsAzureStorage
im Ordnerextensions/
ablegen. - Folgenden Code am Ende der
LocalSettings.php
einfügen:wfLoadExtension( 'WindowsAzureStorage' );
- Configure as required.
- Erledigt – Zu Special:Version in dem Wiki (bei Einstellung auf deutsch nach Spezial:Version) navigieren, um die erfolgreiche Installierung der Erweiterung zu überprüfen.
Konfiguration
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;