Extension:WindowsAzureStorage

From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manual - list
Crystal Clear action run.png
WindowsAzureStorage

Release status: experimental

Windows Azure logo.png
Implementation other (invalid type)
Description Store files in the Windows Azure cloud, using the Windows Azure Storage Service
Author(s) Markus Glaser (MglaserTalk)
Last version 1.0.0 (2012-01-15)
MediaWiki 1.19+
License GPL
Download
http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/WindowsAzureStorage/README.txt?view=markup

Check usage (experimental)

Contents

[edit] What can this extension do?

This extension enables MediaWiki to store uploaded files in the Windows Azure Cloud, using the Windows Azure Storage Service.

[edit] Usage

Just install the extension and configure your wikis file backend. Afterwards you can upload your files directly into the Windows Azure cloud.

[edit] Download instructions

Use the download link in the infobox on the right side of this page.

[edit] Requirements

You will need to have the WindowsAzureSDK extension installed to use this extension.

[edit] Installation

To install this extension, add the following to LocalSettings.php:

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

[edit] Configuration parameters

The extension itself does not have any configuration variables but you will have to set up your wikis file backend like this

$wgFileBackends[] = array(
                'name'        => 'azure-backend',
                'class'       => 'WindowsAzureFileBackend',
                'lockManager' => 'nullLockManager',
                'azureHost'      => '<your-azure-server>',
                'azureAccount'   => '<your-azure-storage-service-account>',
                'azureKey'       => '<your-azure-accounts-accesskey>',
 
                //IMPORTANT: Mind the container naming conventions! http://msdn.microsoft.com/en-us/library/dd135715.aspx
                'containerPaths' => array(
                                'media-public'  => 'media-public',
                                'media-thumb'   => 'media-thumb',
                                'media-deleted' => 'media-deleted',
                                'media-temp'    => 'media-temp',
 
                )
);
 
$wgLocalFileRepo = array (
        'class'             => 'LocalRepo',
        'name'              => 'local',
        'scriptDirUrl'      => '/mediawiki-filebackend-azure',
        'scriptExtension'   => '.php',
        'url'               => $wgScriptPath.'/img_auth.php', // It is important to set this to img_auth. Basically, there is no alternative.
        'hashLevels'        => 2,
        'thumbScriptUrl'    => false,
        'transformVia404'   => false,
        'deletedHashLevels' => 3,
        'backend'           => 'azure-backend',
        'zones' => array (
                        'public' => array (
                                        'container' => 'local-public',
                                        'directory' => '',
                        ),
                        'thumb' => array(
                                        'container' => 'local-public',
                                        'directory' => 'thumb',
                        ),
                        'deleted' => array (
                                        'container' => 'local-public',
                                        'directory' => 'deleted',
                        ),
                        'temp' => array(
                                        'container' => 'local-public',
                                        'directory' => 'temp',
                        )
        )
);
 
$wgImgAuthPublicTest = false;
Personal tools
Namespaces

Variants
Actions
Navigation
Support
Download
Development
Communication
Print/export
Toolbox