tokers commented on a change in pull request #3828:
URL: https://github.com/apache/apisix/pull/3828#discussion_r594291484



##########
File path: docs/zh/latest/FAQ.md
##########
@@ -319,3 +319,34 @@ You may have to install OPENSSL in your system and/or pass 
OPENSSL_DIR or OPENSS
 Example: luarocks install luasec OPENSSL_DIR=/usr/local
 make: *** [deps] Error 1
 ```
+
+## 如何通过 APISIX 代理访问 APISIX Dashboard
+
+1、保持 APISIX 与 Admin API 使用不同的端口(或禁用 Admin API),例如,在 `conf/config.yaml` 中做如下配置。

Review comment:
       Ditto with the English version.

##########
File path: docs/zh/latest/FAQ.md
##########
@@ -319,3 +319,34 @@ You may have to install OPENSSL in your system and/or pass 
OPENSSL_DIR or OPENSS
 Example: luarocks install luasec OPENSSL_DIR=/usr/local
 make: *** [deps] Error 1
 ```
+
+## 如何通过 APISIX 代理访问 APISIX Dashboard
+
+1、保持 APISIX 与 Admin API 使用不同的端口(或禁用 Admin API),例如,在 `conf/config.yaml` 中做如下配置。
+
+Admin API 使用独立端口 9180:
+
+```yaml
+apisix:
+  port_admin: 9180            # use a separate port
+```
+
+2、添加 APISIX Dashboard 的代理路由:
+
+```shell
+curl -i http://127.0.0.1:9180/apisix/admin/routes/1  -H 'X-API-KEY: 
edd1c9f034335f136f87ad84b625c8f1' -X PUT -d '
+{
+    "uris":[ "/*" ],
+    "name":"apisix_proxy_dashboard",
+    "upstream":{
+        "nodes":[
+            {
+                "host":"127.0.0.1",

Review comment:
       Ditto with the English version.

##########
File path: docs/en/latest/FAQ.md
##########
@@ -371,3 +371,34 @@ You may have to install OPENSSL in your system and/or pass 
OPENSSL_DIR or OPENSS
 Example: luarocks install luasec OPENSSL_DIR=/usr/local
 make: *** [deps] Error 1
 ```
+
+## How to access APISIX Dashboard through APISIX proxy
+
+1. Keep APISIX and Admin API using different ports (or disable Admin API), for 
example, do the following configuration in `conf/config.yaml`.
+
+The Admin API use a separate port 9180:
+
+```yaml
+apisix:
+  port_admin: 9180            # use a separate port
+```
+
+2. Add proxy route of APISIX Dashboard:
+
+```shell
+curl -i http://127.0.0.1:9180/apisix/admin/routes/1  -H 'X-API-KEY: 
edd1c9f034335f136f87ad84b625c8f1' -X PUT -d '
+{
+    "uris":[ "/*" ],
+    "name":"apisix_proxy_dashboard",
+    "upstream":{
+        "nodes":[
+            {
+                "host":"127.0.0.1",

Review comment:
       Should add a note to tell the user that assuming we have a Dashboard 
service listening on `127.0.0.1:9000`.

##########
File path: docs/en/latest/FAQ.md
##########
@@ -371,3 +371,34 @@ You may have to install OPENSSL in your system and/or pass 
OPENSSL_DIR or OPENSS
 Example: luarocks install luasec OPENSSL_DIR=/usr/local
 make: *** [deps] Error 1
 ```
+
+## How to access APISIX Dashboard through APISIX proxy
+
+1. Keep APISIX and Admin API using different ports (or disable Admin API), for 
example, do the following configuration in `conf/config.yaml`.

Review comment:
       I think `APISIX` and `Admin API` do not peer to peer, should be "Keep 
the proxy port and Admin API port of APISIX different".




----------------------------------------------------------------
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:
[email protected]


Reply via email to