Extension:WindowsAzureStorage

This page is a translated version of the page Extension:WindowsAzureStorage and the translation is 67% complete.
MediaWiki 拡張機能マニュアル
WindowsAzureStorage
リリースの状態: 安定
実装 ファイル リポジトリ
説明 Allows MediaWiki to use Windows Azure as the file backend
作者 Thai Phan, Markus Glaser
最新バージョン 1.2.0
MediaWiki >= 1.34.0
ライセンス GNU 一般公衆利用許諾書 2.0 以降
ダウンロード
Quarterly downloads 9 (Ranked 135th)
translatewiki.net で翻訳を利用できる場合は、WindowsAzureStorage 拡張機能の翻訳にご協力ください

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

インストール

  • ダウンロードして、ファイルをextensions/フォルダー内のWindowsAzureStorageという名前のディレクトリ内に配置します。
    開発者とコード寄稿者は、上記の代わりに以下を使用してGitからインストールします:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/WindowsAzureStorage
  • 以下のコードを LocalSettings.php ファイルの末尾に追加します:
    wfLoadExtension( 'WindowsAzureStorage' );
    
  • Configure as required.
  •   完了 – ウィキの「Special:Version」に移動して、拡張機能が正しくインストールされたことを確認します。

設定

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;

関連項目