xiaodizi opened a new issue, #10745: URL: https://github.com/apache/apisix/issues/10745
### Description I wanted to expose my own api through apisix, so I considered using the public-api plugin. First, I created a consumer `curl -XPUT 'http://127.0.0.1:9180/apisix/admin/consumers?api_key=ratu' \ -H 'X-API-KEY: ratu-key-lei' \ -H 'Content-Type: application/json' \ -d '{ "username": "RAUT", "plugins": { "jwt-auth": { "key": "ratu-key-lei", "algorithm": "HS256" } } }'` Then I created a route: `curl -XPUT 'http://127.0.0.1:9180/apisix/admin/routes/r_lei?api_key=ratu' \ -H 'X-API-KEY: ratu-key-lei' \ -H 'Content-Type: application/json' \ -d'{ "uri": "/get", "plugins": { "public-api": { "uri": "/v3/ratu/apisix/get" } } }'` And then I tested: `curl -i "http://192.168.184.88:8888/get?key=ratu-key-lei"` The log contains the following error: <img width="868" alt="image" src="https://github.com/apache/apisix/assets/10411525/63cb1061-04ed-4955-b76c-97892aaf57f4"> Because my api is on a different machine, at a different address `http://192.168.110.249:8081/v3/ratu/apisix/get` How should this be configured? I didn't find the solution I was looking for in the documentation. I asked for help. ### Environment - APISIX version (run `apisix version`): APISIX/3.7.0 - Operating system (run `uname -a`): CentOS 7 - OpenResty / Nginx version (run `openresty -V` or `nginx -V`): openresty/1.21.4.2 - etcd version, if relevant (run `curl http://127.0.0.1:9090/v1/server_info`): etcd Version: 3.5.11 - APISIX Dashboard version, if relevant: Not installed - Plugin runner version, for issues related to plugin runners: - LuaRocks version, for installation issues (run `luarocks --version`): Not installed -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
