authserver/testCAS/config/filesystems.php
changeset 0 1afc9d2ab94d
equal deleted inserted replaced
-1:000000000000 0:1afc9d2ab94d
       
     1 <?php
       
     2 
       
     3 return [
       
     4 
       
     5     /*
       
     6     |--------------------------------------------------------------------------
       
     7     | Default Filesystem Disk
       
     8     |--------------------------------------------------------------------------
       
     9     |
       
    10     | Here you may specify the default filesystem disk that should be used
       
    11     | by the framework. A "local" driver, as well as a variety of cloud
       
    12     | based drivers are available for your choosing. Just store away!
       
    13     |
       
    14     | Supported: "local", "ftp", "s3", "rackspace"
       
    15     |
       
    16     */
       
    17 
       
    18     'default' => 'local',
       
    19 
       
    20     /*
       
    21     |--------------------------------------------------------------------------
       
    22     | Default Cloud Filesystem Disk
       
    23     |--------------------------------------------------------------------------
       
    24     |
       
    25     | Many applications store files both locally and in the cloud. For this
       
    26     | reason, you may specify a default "cloud" driver here. This driver
       
    27     | will be bound as the Cloud disk implementation in the container.
       
    28     |
       
    29     */
       
    30 
       
    31     'cloud' => 's3',
       
    32 
       
    33     /*
       
    34     |--------------------------------------------------------------------------
       
    35     | Filesystem Disks
       
    36     |--------------------------------------------------------------------------
       
    37     |
       
    38     | Here you may configure as many filesystem "disks" as you wish, and you
       
    39     | may even configure multiple disks of the same driver. Defaults have
       
    40     | been setup for each driver as an example of the required options.
       
    41     |
       
    42     */
       
    43 
       
    44     'disks' => [
       
    45 
       
    46         'local' => [
       
    47             'driver' => 'local',
       
    48             'root'   => storage_path().'/app',
       
    49         ],
       
    50 
       
    51         'ftp' => [
       
    52             'driver'   => 'ftp',
       
    53             'host'     => 'ftp.example.com',
       
    54             'username' => 'your-username',
       
    55             'password' => 'your-password',
       
    56 
       
    57             // Optional config settings
       
    58             // 'port'     => 21,
       
    59             // 'root'     => '',
       
    60             // 'passive'  => true,
       
    61             // 'ssl'      => true,
       
    62             // 'timeout'  => 30,
       
    63         ],
       
    64 
       
    65         's3' => [
       
    66             'driver' => 's3',
       
    67             'key'    => 'your-key',
       
    68             'secret' => 'your-secret',
       
    69             'region' => 'your-region',
       
    70             'bucket' => 'your-bucket',
       
    71         ],
       
    72 
       
    73         'rackspace' => [
       
    74             'driver'    => 'rackspace',
       
    75             'username'  => 'your-username',
       
    76             'key'       => 'your-key',
       
    77             'container' => 'your-container',
       
    78             'endpoint'  => 'https://identity.api.rackspacecloud.com/v2.0/',
       
    79             'region'    => 'IAD',
       
    80             'url_type'  => 'publicURL'
       
    81         ],
       
    82 
       
    83     ],
       
    84 
       
    85 ];