Skip to content

Commit

Permalink
支持自定义域名
Browse files Browse the repository at this point in the history
  • Loading branch information
overtrue committed Apr 24, 2022
1 parent 09bd9c9 commit 3a4e98d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,12 @@ $config = [
// 可选,如果 bucket 为私有访问请打开此项
'signed_url' => false,

// 可选,是否使用 https,默认 false
'use_https' => true,

// 可选,自定义域名
'domain' => 'emample-12340000.cos.test.com',

// 可选,使用 CDN 域名时指定生成的 URL host
'cdn' => 'https://youcdn.domain.com/',
];
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"require": {
"php": ">=8.0.2",
"league/flysystem": "^3.0",
"overtrue/qcloud-cos-client": "^1.0.0"
"overtrue/qcloud-cos-client": "^2.0"
},
"require-dev": {
"phpunit/phpunit": "^9.5",
Expand Down

0 comments on commit 3a4e98d

Please sign in to comment.