Extension:WindowsAzureStorage/hi
![]() प्रकाशन की स्थिति: स्थिर |
|
---|---|
![]() |
|
कार्यान्वयन | चित्र रिपॉज़िटरी |
विवरण | Allows MediaWiki to use Windows Azure as the file backend |
लेखक | Thai Phan, Markus Glaser |
नवीनतम संस्करण | 1.2.0 |
MediaWiki | >= 1.34.0 |
लाइसेंस | GNU साधारण सार्वजनिक लाइसेंस 2.0 या उसके बाद |
डाउनलोड करें | |
WindowsAzureStorage एक्सटेंशन को अनुवादित करें अगर यह translatewiki.net पर उपलब्ध है | |
The WindowsAzureStorage extension enables MediaWiki to store uploaded files to the Windows Azure Storage service.
Installation
- फाइलों को डाउनलोड करें और अपने
extensions/
फोल्डर केWindowsAzureStorage
नामक डिरेक्ट्री में डालें। - अपनी $LocalSettings के नीचे निम्नलिखित कोड जोड़ें:
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;