-
Notifications
You must be signed in to change notification settings - Fork 851
Support remap.yaml #12813
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: 11-Dev
Are you sure you want to change the base?
Support remap.yaml #12813
Conversation
bneradt
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Thanks for helping us make progress on this.
| process_regex_mapping_config(const char *from_host_lower, url_mapping *new_mapping, UrlRewrite::RegexMapping *reg_map) | ||
| { | ||
| std::string_view to_host{}; | ||
| int to_host_len; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks like it has code duplicated with a function of the same name in RemapConfig.cc. Maybe we can extract out logic to a shared function to deduplicate?
Support YAML format for remap rules. Not replacing remap.config but providing additional remap option to define configs in yaml. If no
remap.yamlis found, defaults back toremap.config"Prerequisite" for #12669, to YAML'fy remap configs before moving into virtualhost.yaml