امتداد:WindowsAzureStorage

This page is a translated version of the page Extension:WindowsAzureStorage and the translation is 100% complete.
الدليل المرجعي لامتدادات ميدياويكي
WindowsAzureStorage
حالة الإصدار مستقر
تنفيذ مستودع ملفات
بيان يسمح لبرمجيات ميدياويكي باستخدام Windows Azure ليكون مكان حفظ ملفات
المؤلف/المؤلفون Thai Phan, Markus Glaser
آخر إصدار 1.2.0
MediaWiki >= 1.34.0
ترخيص رخصة جنو العمومية 2.0 أو ما بعدها
التنزيل
تنزيلات ربع سنوية 9 (Ranked 135th)
ترجم الامتداد WindowsAzureStorage لو كان متوفرا على translatewiki.net

يسمح امتداد WindowsAzureStorage لبرمجيات ميدياويكي بتخزين الملفات المرفوعة في خدمات Windows Azure Storage.

التثبيت

  • نزّل الملف/الملفات وضعها في دليل يحمل اسم ‎WindowsAzureStorage داخل مجلد ‎extensions/‎ لديك.
    يجب على مطوري البرمجيات والمساهمين بالكود البرمجي تثبيت الامتداد من غت بدلا من ذلك، مستخدمين: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;

انظر أيضا