Skip to content

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

Merged
spacewander merged 7 commits into
apache:masterfrom
Gallardot:pm-mode
Nov 15, 2022
Merged

feat(proxy-mirror): support prefix mode#8261
spacewander merged 7 commits into
apache:masterfrom
Gallardot:pm-mode

Conversation

@Gallardot

Copy link
Copy Markdown
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)

Comment thread apisix/plugins/proxy-mirror.lua Outdated
type = "string",
pattern = [[^/[^?&]+$]],
},
mode = {

Copy link
Copy Markdown
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
Copy Markdown
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

@spacewander spacewander left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@Gallardot

Copy link
Copy Markdown
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

Development

Successfully merging this pull request may close these issues.

feat: As a user, I want to enhance the custom path of Proxy-mirror plugin, so that it can be used in more scenarios

3 participants