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": []}
Apisix and dashboard are separately deployed projects. If we want to proxy access to dashboard through apisix, what should we do?
The error message should be more clear.
Here are two things in your issue:
version_match throws 401;Here are two things in your issue:
version_matchthrows 401;- 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.
Most helpful comment
To use APISIX proxy Dashboard, you need to set
enable adminto 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.