Skip to content
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

feat(proxy-mirror): support prefix mode #8261

Merged
merged 7 commits into from
Nov 15, 2022
Merged

Conversation

Gallardot
Copy link
Member

Description

Fixes #8260

Checklist

  • I have explained the need for this PR and the problem it solves
  • I have explained the changes or the new features added to this PR
  • I have added tests corresponding to this change
  • I have updated the documentation to reflect this change
  • I have verified that this change is backward compatible (If not, please discuss on the APISIX mailing list first)

@@ -33,6 +33,12 @@ local schema = {
type = "string",
pattern = [[^/[^?&]+$]],
},
mode = {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As it isn't "mode" of the proxy-mirror, I think calling it "path_concat_mode" would be better.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@spacewander Done. PTAL.

spacewander
spacewander previously approved these changes Nov 11, 2022
Copy link
Member

@spacewander spacewander left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you update the doc (https://github.com/apache/apisix/blob/master/docs/en/latest/plugins/proxy-mirror.md and the corresponding Chinese version) before we can merge it?

@Gallardot
Copy link
Member Author

Could you update the doc (https://github.com/apache/apisix/blob/master/docs/en/latest/plugins/proxy-mirror.md and the corresponding Chinese version) before we can merge it?

@spacewander I have updated the documents in English and Chinese. PTAL.

@spacewander spacewander merged commit 06f6137 into apache:master Nov 15, 2022
@Gallardot Gallardot deleted the pm-mode branch November 15, 2022 01:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants