Extension:WindowsAzureStorage

From mediawiki.org
This page is a translated version of the page Extension:WindowsAzureStorage and the translation is 100% complete.
MediaWiki manüel uzantıları
WindowsAzureStorage
Sürüm durumu: kararlı
Uygulama Dosya deposu
Açıklama MediaWiki'nin dosya arka ucu olarak Windows Azure'u kullanmasına izin verir
Yazar(lar) Thai Phan, Markus Glaser
En son sürüm 1.2.0
MediaWiki >= 1.34.0
Lisans GNU Genel Kamu Lisansı 2.0 veya üstü
İndir
Quarterly downloads 9 (Ranked 133rd)
Translatewiki.net adresinde mevcutsa, WindowsAzureStorage uzantısını çevirin

WindowsAzureStorage uzantısı, MediaWiki'nin yüklenen dosyaları Windows Azure Storage hizmetine depolamasını sağlar.

Kurulum

  • Dosyaları indirin ve extensions/ klasörünüzdeki WindowsAzureStorage adlı dizine yerleştirin.
    Developers and code contributors should install the extension from Git instead, using:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/WindowsAzureStorage
  • LocalSettings.php dosyanızın altına aşağıdaki kodu ekleyin:
    wfLoadExtension( 'WindowsAzureStorage' );
    
  • Configure as required.
  • Yes Yapıldı – Uzantının başarıyla yüklendiğini doğrulamak için vikinizde Special:Version seçeneğine gidin.

Yapılandırma

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;

Ayrıca bakınız