Skip to content

Commit

Permalink
Merge pull request #21 from volcengine/feat/opt-example
Browse files Browse the repository at this point in the history
feat: 优化配置说明
  • Loading branch information
zhangpengspin authored Sep 24, 2024
2 parents 7a9753f + 3889f52 commit 42d6551
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,16 @@ datarangers-sdk-php是 [DataRangers](https://datarangers.com.cn/) 的用户行
"domain" => "http://domain",
"save" => true,
"headers" => [
"Host" => "host",
"Content-Type" => "application/json"
],
"http_timeout"=> 10000
]);

# 私有化部署场景 http 模式,Host 必须配置,Host 没有http://,https://
# 私有化部署场景 http 模式
CollectorConfig::init_datarangers_collector([
"domain" => "https://xxxx",
"save" => false,
"headers" => [
"Host" => "xxxx",
"Content-Type" => "application/json"
],
"http_timeout"=> 10000
Expand Down
1 change: 0 additions & 1 deletion test/HttpTester.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
"domain" => getenv("HTTP_DOMAIN"),
"save" => false,
"headers" => [
"Host" => getenv("HTTP_HOST"),
"Content-Type" => "application/json"
],
"http_timeout"=> 10000
Expand Down

0 comments on commit 42d6551

Please sign in to comment.