You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by to...@apache.org on 2021/05/12 10:46:52 UTC

[apisix] branch master updated: docs: FAQ Add allow all IPs to access Admin API (#4227)

This is an automated email from the ASF dual-hosted git repository.

tokers 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 cd08a1a  docs: FAQ Add allow all IPs to access Admin API (#4227)
cd08a1a is described below

commit cd08a1a27c17e2290515c78433ba27d890064648
Author: Yuelin Zheng <22...@qq.com>
AuthorDate: Wed May 12 18:46:43 2021 +0800

    docs: FAQ Add allow all IPs to access Admin API (#4227)
---
 docs/en/latest/FAQ.md | 12 ++++++++++++
 docs/zh/latest/FAQ.md | 12 ++++++++++++
 2 files changed, 24 insertions(+)

diff --git a/docs/en/latest/FAQ.md b/docs/en/latest/FAQ.md
index 56f3546..640b880 100644
--- a/docs/en/latest/FAQ.md
+++ b/docs/en/latest/FAQ.md
@@ -468,3 +468,15 @@ HTTP/1.1 200 OK
 ```
 
 The route was created successfully. It means that the modification of `X-API-KEY` takes effect.
+
+## How to allow all IPs to access Admin API
+
+By default, Apache APISIX only allows the IP range of `127.0.0.0/24` to access the `Admin API`. If you want to allow all IP access, then you only need to add the following configuration in the `conf/config.yaml` configuration file.
+
+```yaml
+apisix:
+  allow_admin:
+    - 0.0.0.0/0
+```
+
+Restart or reload APISIX, all IPs can access the `Admin API`.
diff --git a/docs/zh/latest/FAQ.md b/docs/zh/latest/FAQ.md
index 2874d81..0cde484 100644
--- a/docs/zh/latest/FAQ.md
+++ b/docs/zh/latest/FAQ.md
@@ -467,3 +467,15 @@ HTTP/1.1 200 OK
 ```
 
 路由创建成功,表示 `X-API-KEY` 修改生效。
+
+## 如何允许所有 IP 访问 Admin API
+
+Apache APISIX 默认只允许 `127.0.0.0/24` 的 IP 段范围访问 `Admin API`,如果你想允许所有的 IP 访问,那么你只需在 `conf/config.yaml` 配置文件中添加如下的配置。
+
+```yaml
+apisix:
+  allow_admin:
+    - 0.0.0.0/0
+```
+
+重启或 reload APISIX,所有 IP 便可以访问 `Admin API`。