Apisix-dashboard: [discuss]: how to use apisix for proxy access to dashboard

Created on 19 Feb 2021  路  5Comments  路  Source: apache/apisix-dashboard

Issue description

Apisix and dashboard are separately deployed projects. If we want to proxy access to dashboard through apisix, what should we do?

When I try to use the apisix proxy to access the dashboard, the dashboard log shows the following 401 status code:

2021-02-18T19:36:32.230+0800    filter/ip_filter.go:87  /apisix/admin/tool/version_match        {"status": 401, "host": "127.0.0.1:9001", "query": "", "requestId": "9b35366a-3eaf-4de1-8837-afe4bcd2f1fa", "latency": 0, "remoteIP": "125.120.16.47", "method": "GET", "errs": []}
2021-02-18T19:36:34.074+0800    filter/ip_filter.go:87  /apisix/admin/tool/version_match        {"status": 401, "host": "127.0.0.1:9001", "query": "", "requestId": "cbbe013b-ff97-4bee-9bdd-7d04cb725dfe", "latency": 0, "remoteIP": "125.120.16.47", "method": "GET", "errs": []}

Update Issue description:

Apisix and dashboard are separately deployed projects. If we want to proxy access to dashboard through apisix, what should we do?

question

Most helpful comment

To use APISIX proxy Dashboard, you need to set enable admin to false (because the path of the Admin API and the path of the Manager API are the same, not setting it to false will request to apis of Admin API), and then follow the normal route configuration.

All 5 comments

The error message should be more clear.

Here are two things in your issue:

  1. version_match throws 401;
  2. How to proxy request from apisix to dashboard.

Here are two things in your issue:

  1. version_match throws 401;
  2. How to proxy request from apisix to dashboard.

These log information has nothing to do with the title, I will update the content.

Some Routes, Upstreams need to configured to APISIX but bypass the APISIX Dashboard, e.g. invoking Admin APIs.

To use APISIX proxy Dashboard, you need to set enable admin to false (because the path of the Admin API and the path of the Manager API are the same, not setting it to false will request to apis of Admin API), and then follow the normal route configuration.

Was this page helpful?
0 / 5 - 0 ratings