Giter VIP home page Giter VIP logo

laravel-medialibrary-selectel-url-generator's Introduction

Описание

данный пакет предназначе для интеграции диска Selectel в систему управления медиа файлами medialibrary для Laravel от spatie он генерирует сылки на CDN если в базе указано disk = selectel

install

composer require pecherskiy-v/laravel-medialibrary-selectel-url-generator

добавить в config\medialibrary.php

'selectel' => [
    /*
     * The domain that should be prepended when generating urls.
     */
    'domain' => 'https://' . env('SELECTEL_BUCKET') . '.selcdn.ru/' . env('SELECTEL_CONTAINER'),
],

добавить в config\filesystems.php

'selectel' => [
    'driver' => 'selectel',
    'username' => env('SELECTEL_USERNAME'),
    'password' => env('SELECTEL_PASSWORD'),
    'container' => env('SELECTEL_CONTAINER'),
    'container_url' => env('SELECTEL_CONTAINER_URL'),
],

добавить в .env

SELECTEL_BUCKET=ID CDN (https://{ID}.selcdn.ru/)
SELECTEL_CONTAINER=container name
SELECTEL_USERNAME=user name
SELECTEL_PASSWORD=password
SELECTEL_CONTAINER_URL=containet url

Laravel <= 5.4 Add ArgentCrusade\Flysystem\Selectel\SelectelServiceProvider::class to your providers list in config/app.php

/*
* Package Service Providers...
*/
ArgentCrusade\Flysystem\Selectel\SelectelServiceProvider::class,

Info laravel-medialibrary. Info flysystem-selectel.

laravel-medialibrary-selectel-url-generator's People

Contributors

pecherskiy-v avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.