Skip to content

Commit

Permalink
refactor: remove the reverse_proxy parameter and use is_cname ins…
Browse files Browse the repository at this point in the history
…tead
  • Loading branch information
alphasnow committed Feb 2, 2024
1 parent 143a11e commit df66d22
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion README-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@
"is_cname" => env("OSS_CNAME", false), // 选填, 若Endpoint为自定义域名,此项要为true,见:https://github.com/aliyun/aliyun-oss-php-sdk/blob/572d0f8e099e8630ae7139ed3fdedb926c7a760f/src/OSS/OssClient.php#L113C1-L122C78
"prefix" => env("OSS_PREFIX", ""), // 选填, 统一存储地址前缀
"use_ssl" => env("OSS_SSL", false), // 选填, 是否使用HTTPS
"reverse_proxy" => env("OSS_REVERSE_PROXY", false), // 选填, 域名是否使用NGINX代理绑定
"throw" => env("OSS_THROW", false), // 选填, 是否抛出引起错误的异常,默认出现错误时,不抛出异常仅返回false
"options" => [], // 选填, 添加全局配置参数, 示例: [\OSS\OssClient::OSS_CHECK_MD5 => false]
"macros" => [] // 选填, 添加自定义Macro, 示例: [\App\Macros\ListBuckets::class, \App\Macros\CreateBucket::class]
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ If client direct transmission is required, Use web server signature direct trans
"is_cname" => env("OSS_CNAME", false), // Optional, if the Endpoint is a custom domain name, this must be true, see: https://github.com/aliyun/aliyun-oss-php-sdk/blob/572d0f8e099e8630ae7139ed3fdedb926c7a760f/src/OSS/OssClient.php#L113C1-L122C78
"prefix" => env("OSS_PREFIX", ""), // Optional, The prefix of the store path
"use_ssl" => env("OSS_SSL", false), // Optional, Whether to use HTTPS
"reverse_proxy" => env("OSS_REVERSE_PROXY", false), // Optional, Whether to use the Reverse proxy, such as nginx
"throw" => env("OSS_THROW", false), // Optional, Whether to throw an exception that causes an error
"options" => [], // Optional, Add global configuration parameters, For example: [\OSS\OssClient::OSS_CHECK_MD5 => false]
"macros" => [] // Optional, Add custom Macro, For example: [\App\Macros\ListBuckets::class, \App\Macros\CreateBucket::class]
Expand Down
3 changes: 1 addition & 2 deletions config/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,13 @@
"request_proxy" => env("OSS_PROXY", null), // Used by \OSS\OssClient
"security_token" => env("OSS_TOKEN", null), // Used by \OSS\OssClient
"is_cname" => env("OSS_CNAME", false), // If this is the CName and bound in the bucket.
"use_ssl" => env("OSS_SSL", null), // Whether to use HTTPS
"use_ssl" => env("OSS_SSL", false), // Whether to use HTTPS
"max_retries" => env("OSS_MAX_TRIES", null), // Sets the max retry count
"timeout" => env("OSS_TIMEOUT", null), // The request timeout time
"connect_timeout" => env("OSS_CONNECT_TIMEOUT", null), // The connection timeout time
"enable_sts_in_url" => env("OSS_STS_URL", null), // Enable/disable STS in the URL
"internal" => env("OSS_INTERNAL", null), // For example: oss-cn-shanghai-internal.aliyuncs.com
"domain" => env("OSS_DOMAIN", null), // For example: oss.my-domain.com
"reverse_proxy" => env("OSS_REVERSE_PROXY", false), // Whether to use the Reverse proxy, such as nginx
"throw" => env("OSS_THROW", false), // Optional, Whether to throw an exception that causes an error
"options" => [], // For example: [\OSS\OssClient::OSS_CHECK_MD5 => false]
"macros" => [] // For example: [\App\Macros\ListBuckets::class,\App\Macros\CreateBucket::class]
Expand Down

0 comments on commit df66d22

Please sign in to comment.