Extension:WindowsAzureStorage

From mediawiki.org
Jump to navigation Jump to search
This page is a translated version of the page Extension:WindowsAzureStorage and the translation is 71% complete.
Manual för MediaWikitillägg
OOjs UI icon advanced-invert.svg
WindowsAzureStorage
Utgivningsstatus: stabil
Windows Azure logo.png
Genomförande Fillager
Beskrivning Allows MediaWiki to use Windows Azure as the file backend
Författare Thai Phan, Markus Glaser
Senaste versionen 1.1.0 (2013-03-31)
MediaWiki 1.20+
Licenser GNU General Public License 2.0 eller senare
Ladda ner
Översätt tillägget WindowsAzureStorage om det finns tillgängligt på translatewiki.net

Kontrollera användning och versionsmatris.

WindowsAzureStorage enables MediaWiki to store uploaded files to the Windows Azure Storage service.

Ladda ner

Due to changes in the MS API, this extension has been broken. A fork is available here with the fixes: https://github.com/Ed-Tam/mediawiki-extensions-WindowsAzureStorage

Tillägget kan hämtas direkt från Git [?]:

  • Bläddra i koden
  • Vissa tillägg har taggar för stabila versioner.
  • Varje gren associeras med en tidigare MediaWiki-version. Det finns också en "master"-gren som innehåller den senaste alfaversionen (kan kräva en alfaversion av MediaWiki).

Extract the snapshot and place it in the extensions/WindowsAzureStorage/ directory of your MediaWiki installation.

If you are familiar with Git and have shell access to your server, you can also obtain the extension as follows:

cd extensions/ git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/WindowsAzureStorage.git

Installation

To install this extension, you will need to modify your LocalSettings.php .

Aktivering

Add the following line to LocalSettings.php and then check to see if it shows up in Special:Version.

require_once("$IP/extensions/WindowsAzureStorage/WindowsAzureStorage.php");

Konfigurering

Add the following to the end of LocalSettings.php 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[] = array(
    'name'         => 'localAzure',
    'class'        => 'WindowsAzureFileBackend',
    'lockManager'  => 'nullLockManager',
    'azureAccount' => 'your_azure_storage_account',
    'azureKey'     => 'your_azure_storage_account_key'
);

$wgLocalFileRepo = array (
    'class'             => 'LocalRepo',
    'name'              => 'local',
    'backend'           => 'localAzure',
    'scriptDirUrl'      => $wgScriptPath,
    'scriptExtension'   => $wgScriptExtension,
    'url'               => $wgScriptPath . '/img_auth.php',
    'hashLevels'        => 0,
    'deletedHashLevels' => 0,
    'zones'             => array(
        'public'  => array( 'container' => 'public' ),
        'thumb'   => array( 'container' => 'thumb' ),
        'temp'    => array( 'container' => 'temp' ),
        'deleted' => array( 'container' => 'deleted' )
    )
);

$wgImgAuthPublicTest = false;