You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by ju...@apache.org on 2022/07/06 04:00:11 UTC
[apisix] branch master updated: docs: move "configuring APISIX" section to Installation docs (#7388)
This is an automated email from the ASF dual-hosted git repository.
juzhiyuan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix.git
The following commit(s) were added to refs/heads/master by this push:
new 3ad363239 docs: move "configuring APISIX" section to Installation docs (#7388)
3ad363239 is described below
commit 3ad363239a5a350c76d9cdefd5f56ce5a1221550
Author: HanFei <97...@users.noreply.github.com>
AuthorDate: Wed Jul 6 12:00:03 2022 +0800
docs: move "configuring APISIX" section to Installation docs (#7388)
---
docs/zh/latest/architecture-design/apisix.md | 28 -----------------------
docs/zh/latest/installation-guide.md | 34 +++++++++++++++++++++++++++-
2 files changed, 33 insertions(+), 29 deletions(-)
diff --git a/docs/zh/latest/architecture-design/apisix.md b/docs/zh/latest/architecture-design/apisix.md
index 428a40fce..dfe866eb7 100644
--- a/docs/zh/latest/architecture-design/apisix.md
+++ b/docs/zh/latest/architecture-design/apisix.md
@@ -43,31 +43,3 @@ APISIX 目前也内置了各类插件,覆盖了 API 网关的各种领域,
## 插件内部结构

-
-## 配置 APISIX
-
-通过修改本地 `conf/config.yaml` 文件,或者在启动 APISIX 时使用 `-c` 或 `--config` 添加文件路径参数 `apisix start -c <path string>`,完成对 APISIX 服务本身的基本配置。
-
-比如修改 APISIX 默认监听端口为 8000,其他配置保持默认,在 `config.yaml` 中只需这样配置:
-
-```yaml
-apisix:
- node_listen: 8000 # APISIX listening port
-```
-
-比如指定 APISIX 默认监听端口为 8000,并且设置 etcd 地址为 `http://foo:2379`,
-其他配置保持默认。在 `config.yaml` 中只需这样配置:
-
-```yaml
-apisix:
- node_listen: 8000 # APISIX listening port
-
-etcd:
- host: "http://foo:2379" # etcd address
-```
-
-其他默认配置,可以在 `conf/config-default.yaml` 文件中看到,该文件是与 APISIX 源码强绑定,
-**永远不要**手工修改 `conf/config-default.yaml` 文件。如果需要自定义任何配置,都应在 `config.yaml` 文件中完成。
-
-_注意_ 不要手工修改 APISIX 自身的 `conf/nginx.conf` 文件,当服务每次启动时,`apisix`
-会根据 `config.yaml` 配置自动生成新的 `conf/nginx.conf` 并自动启动服务。
diff --git a/docs/zh/latest/installation-guide.md b/docs/zh/latest/installation-guide.md
index f563179cb..e47a63288 100644
--- a/docs/zh/latest/installation-guide.md
+++ b/docs/zh/latest/installation-guide.md
@@ -217,13 +217,45 @@ brew services start etcd
## 后续操作
+### 配置 APISIX
+
+通过修改本地 `./conf/config.yaml` 文件,或者在启动 APISIX 时使用 `-c` 或 `--config` 添加文件路径参数 `apisix start -c <path string>`,完成对 APISIX 服务本身的基本配置。
+
+比如将 APISIX 默认监听端口修改为 8000,其他配置保持默认,在 `./conf/config.yaml` 中只需这样配置:
+
+```yaml title=“./conf/config.yaml”
+apisix:
+ node_listen: 8000 # APISIX listening port
+```
+
+比如指定 APISIX 默认监听端口为 8000,并且设置 etcd 地址为 `http://foo:2379`,其他配置保持默认。在 `./conf/config.yaml` 中只需这样配置:
+
+```yaml title=“./conf/config.yaml”
+apisix:
+ node_listen: 8000 # APISIX listening port
+
+etcd:
+ host: "http://foo:2379" # etcd address
+```
+
+:::warning
+
+APISIX 的默认配置可以在 `./conf/config-default.yaml` 文件中看到,该文件与 APISIX 源码强绑定,请不要手动修改 `./conf/config-default.yaml` 文件。如果需要自定义任何配置,都应在 `./conf/config.yaml` 文件中完成。
+:::
+
+:::warning
+
+请不要手动修改 APISIX 安装目录下的 `./conf/nginx.conf` 文件。当 APISIX 启动时,会根据 `config.yaml` 的配置自动生成新的 `nginx.conf` 并自动启动服务。
+
+:::
+
### 更新 Admin API key
建议修改 Admin API 的 key,保护 APISIX 的安全。
请参考如下信息更新配置文件:
-```yaml title="conf/config.yaml"
+```yaml title="./conf/config.yaml"
apisix:
admin_key
-