forked from slimkit/plus
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcdn.php
More file actions
73 lines (67 loc) · 2.59 KB
/
Copy pathcdn.php
File metadata and controls
73 lines (67 loc) · 2.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<?php
/*
* +----------------------------------------------------------------------+
* | ThinkSNS Plus |
* +----------------------------------------------------------------------+
* | Copyright (c) 2016-Present ZhiYiChuangXiang Technology Co., Ltd. |
* +----------------------------------------------------------------------+
* | This source file is subject to enterprise private license, that is |
* | bundled with this package in the file LICENSE, and is available |
* | through the world-wide-web at the following url: |
* | https://github.com/slimkit/plus/blob/master/LICENSE |
* +----------------------------------------------------------------------+
* | Author: Slim Kit Group <[email protected]> |
* | Homepage: www.thinksns.com |
* +----------------------------------------------------------------------+
*/
return [
/*
|--------------------------------------------------------------------------
| Default CDN Generator
|--------------------------------------------------------------------------
|
| This option controls the default CDN driver, and you can select any of
| the supported drivers.
|
| Supported: "filesystem", "qiniu", "alioss"
|
*/
'default' => 'filesystem',
/*
|--------------------------------------------------------------------------
| CDN generators
|--------------------------------------------------------------------------
|
| Here, you can define all supported driver configurations, and all
| configurations can be configured arbitrarily, but the only thing to note
| is that the "driver" entry must exist.
|
*/
'generators' => [
'filesystem' => [
'driver' => \Zhiyi\Plus\Cdn\Adapter\Filesystem::class,
'disk' => 'public',
'public' => null,
],
'qiniu' => [
'driver' => \Zhiyi\Plus\Cdn\Adapter\Qiniu::class,
'domain' => null,
'ak' => null,
'sk' => null,
'sign' => false,
'expires' => 3600,
'type' => 'cdn', // cdn or object
'bucket' => null,
],
'alioss' => [
'driver' => \Zhiyi\Plus\Cdn\Adapter\AliOss::class,
'AccessKeyId' => null,
'AccessKeySecret' => null,
'bucket' => null,
'endpoint' => null,
'ssl' => false,
'public' => true,
'expires' => 3600,
],
],
];