Skip to content

Commit

Permalink
feat: 优化配置说明
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangpengspin committed Sep 12, 2024
1 parent 7a9753f commit 3889f52
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 3889f52

Please sign in to comment.