Extension:WindowsAzureStorage/ar

Category:GPL licensed extensions/ar
الدليل المرجعي لامتدادات ميدياويكي
WindowsAzureStorage
حالة الإصدار مستقرCategory:Stable extensions/ar
تنفيذ مستودع ملفاتCategory:File repository extensions/ar
بيان يسمح لبرمجيات ميدياويكي باستخدام Windows Azure ليكون مكان حفظ ملفات
المؤلف/المؤلفون Thai Phan, Markus Glaser
آخر إصدار 1.2.0
MediaWiki >= 1.34.0
ترخيص رخصة جنو العمومية 2.0 أو ما بعدها
التنزيل Category:Extensions in Wikimedia version control/ar
ترجم الامتداد WindowsAzureStorage لو كان متوفرا على translatewiki.net
Category:All extensions/ar

يسمح امتداد 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.
  • Yes تم التنفيذ – اذهب إلى 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;

انظر أيضا

Category:Extensions by HalloWelt/ar
Category:All extensions/ar Category:Extensions by HalloWelt/ar Category:Extensions in Wikimedia version control/ar Category:File repository extensions/ar Category:GPL licensed extensions/ar Category:Stable extensions/ar