-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathstorage.php
More file actions
56 lines (52 loc) · 1.59 KB
/
storage.php
File metadata and controls
56 lines (52 loc) · 1.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?php
return [
/**
* Log directory
*/
'log' => __DIR__ . '/../var/logs',
/**
* Store location using the disk system
*/
'disk' => [
'mount' => 'storage',
'path' => [
'storage' => __DIR__ . '/../var/storage',
'public' => __DIR__ . '/../public',
]
],
/**
* External storage service list
*/
"services" => [
/**
* FTP configuration
*/
'ftp' => [
'driver' => 'ftp',
'hostname' => app_env('FTP_HOSTNAME'),
'password' => app_env('FTP_PASSWORD'),
'username' => app_env('FTP_USERNAME'),
'port' => app_env('FTP_PORT', 21),
'root' => app_env('FTP_STARTROOT', null),
'tls' => app_env('FTP_TLS', false),
'timeout' => app_env('FTP_TIMEOUT', 50)
],
/**
* S3 configuration
* Supports both AWS S3 and MinIO (S3-compatible storage)
*/
's3' => [
'driver' => 's3',
'bucket' => app_env('S3_BUCKET', 'settlements'),
'region' => app_env('AWS_REGION', 'us-east-1'),
'version' => 'latest',
'credentials' => [
'key' => app_env('AWS_KEY'),
'secret' => app_env('AWS_SECRET'),
],
// MinIO configuration (optional)
'endpoint' => app_env('AWS_ENDPOINT'), // e.g., 'http://localhost:9000' for MinIO
'use_path_style_endpoint' => app_env('AWS_USE_PATH_STYLE_ENDPOINT', false), // Set to true for MinIO
],
],
];