












第三方的回调通知需要发送到生产及测试环境
考虑到现有项目中没有消息队列,所以使用流量复制实现。后期优化消息队列。
location /{ mirror /mirror; proxy_pass http://backend; } location /mirror{ internal; proxy_pass http://test_backend$request_uri; }
1.nginx版本旧,1.13.4以后内置mirror模块。
oneinstack upgrade 命令升级nginx为1.19.0.
2.配置后不生效
多测试几次,多检查几遍配置是否正确。
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。