agile6v opened a new issue #1262: feature: support request mirror URL: https://github.com/apache/incubator-apisix/issues/1262 Hi Is it necessary to provide a request mirror plugin? The nginx configuration looks like: ```nginx set $var_mirror_disable 1; location / { mirror /mirror_location; proxy_pass $upstream_scheme://apisix_backend$upstream_uri; } location /mirror_location { if ($var_mirror_disable) { return 200; } proxy_pass $mirror_address; } ``` The variable `var_mirror_disable` and `mirror_address` can be configured in the mirror plugin. The admin api looks like this: ``` { "plugins": { "mirror": { "address": "127.0.0.1:8090" } }, "upstream": { "nodes": { "127.0.0.1:1980": 1 }, "type": "roundrobin" }, "uri": "/hello" }' ``` In addition, it would be better if the mirror directive could support variable. Thanks.
---------------------------------------------------------------- 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] With regards, Apache Git Services
