Extension:WindowsAzureStorage/pl

Category:GPL licensed extensions/pl
Podręcznik rozszerzeń MediaWiki
WindowsAzureStorage
Status wydania: stabilneCategory:Stable extensions/pl
Realizacja Repozytorium plikówCategory:File repository extensions/pl
Opis Allows MediaWiki to use Windows Azure as the file backend
Autor(zy) Thai Phan, Markus Glaser
Ostatnia wersja 1.2.0
MediaWiki >= 1.34.0
Licencja Licencja GNU General Public License 2.0 lub nowsza
Pobieranie Category:Extensions in Wikimedia version control/pl
Przetłumacz rozszerzenie WindowsAzureStorage jeżeli jest dostępne na translatewiki.net
Category:All extensions/pl

The WindowsAzureStorage extension enables MediaWiki to store uploaded files to the Windows Azure Storage service.

Instalacja

  • Pobierz i umieść plik(i) w katalogu o nazwie WindowsAzureStorage w folderze extensions/.
    Developers and code contributors should install the extension from Git instead, using:
    cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/WindowsAzureStorage
    
  • Dodaj poniższy kod na dole twojego pliku LocalSettings.php :
    wfLoadExtension( 'WindowsAzureStorage' );
    
  • Configure as required.
  • Yes Zrobione – Przejdź do Special:Version na twojej wiki, aby sprawdzić czy rozszerzenie zostało pomyślnie zainstalowane.

Configuration

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;

Zobacz też

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