server/src/config/filesystems.php
changeset 1 01a844d292ac
child 2 00e2916104fe
equal deleted inserted replaced
0:279124b91971 1:01a844d292ac
       
     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", "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 		's3' => [
       
    52 			'driver' => 's3',
       
    53 			'key'    => 'your-key',
       
    54 			'secret' => 'your-secret',
       
    55 			'region' => 'your-region',
       
    56 			'bucket' => 'your-bucket',
       
    57 		],
       
    58 
       
    59 		'rackspace' => [
       
    60 			'driver'    => 'rackspace',
       
    61 			'username'  => 'your-username',
       
    62 			'key'       => 'your-key',
       
    63 			'container' => 'your-container',
       
    64 			'endpoint'  => 'https://identity.api.rackspacecloud.com/v2.0/',
       
    65 			'region'    => 'IAD',
       
    66 			'url_type'  => 'publicURL'
       
    67 		],
       
    68 
       
    69 	],
       
    70 
       
    71 ];