Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
目前我们公司内部使用遇到了vip的使用场景,要求多环境的nginx配置操作需要同步,我目前的方案是在环境的管理页面添加该环境是否需要同步的开关,并配置需要同步的操作API正则表达式。当开关开启且操作的接口完全匹配上,就会把该操作也作用到该环境上,代码用了一个middleware实现了,修改了部分逻辑。作者评估一下该方案如何,如果有bug等问题也可以联系我帮忙修复,希望该merge能被合并到下一版本中去。
详细变更内容如下: