You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2021/03/21 15:33:22 UTC

[GitHub] [apisix] Firstsawyou commented on a change in pull request #3871: docs: admin-api.md document adds configuration https example

Firstsawyou commented on a change in pull request #3871:
URL: https://github.com/apache/apisix/pull/3871#discussion_r598296719



##########
File path: docs/zh/latest/admin-api.md
##########
@@ -578,15 +578,18 @@ upstream 对象 json 配置内容:
     "checks": {},               # 配置健康检查的参数
     "hash_on": "",
     "key": "",
-    "name": "upstream-xxx",      # upstream 名称
+    "name": "upstream-xxx",     # upstream 名称
     "desc": "hello world",      # upstream 描述
+    "scheme":"http"             # 跟上游通信时使用的 scheme,默认是 `http`

Review comment:
       updated.

##########
File path: docs/en/latest/admin-api.md
##########
@@ -571,12 +571,16 @@ Config Example:
     "key": "",
     "name": "upstream-for-test",
     "desc": "hello world",
+    "scheme":"http",            # The scheme used when communicating with upstream, the default is `http`

Review comment:
       updated.

##########
File path: docs/en/latest/admin-api.md
##########
@@ -657,12 +659,32 @@ After the execution is successful, nodes will not retain the original data, and
 
 ```
 
+Example 2: Create upstream and configure the scheme as `https`.

Review comment:
       updated.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org