Extension:WindowsAzureStorage

From mediawiki.org
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
लाइसेंस GNU साधारण सार्वजनिक लाइसेंस 2.0 या अधिक
डाउनलोड करें
Quarterly downloads 5 (Ranked 144th)
WindowsAzureStorage एक्सटेंशन को अनुवादित करें अगर यह translatewiki.net पर उपलब्ध है

WindowsAzureStorage एक्सटेंशन मीडियाविकि को Windows Azure Storage सेवा पर अपलोड की गई फ़ाइलें रखने में सक्षम करता है।

स्थापना

  • फ़ाइलों को डाउनलोड करें और अपने extensions/ फ़ोल्डर के WindowsAzureStorage नामक डिरेक्ट्री में डालें।
    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 फ़ाइल के अंत में निम्न कोड जोड़ें:
    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;

ये भी देखें