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

Rewrites #4

Open
psykript opened this issue Oct 6, 2023 · 0 comments
Open

Rewrites #4

psykript opened this issue Oct 6, 2023 · 0 comments

Comments

@psykript
Copy link

psykript commented Oct 6, 2023

Hi!
I'm using this plugin for integration Kong with S3.

What is the right way to write Rewrites configuration? I need to add some prefix /path0/ before target path /path1/path2
I tried to rewrite /path1/path2 to /path0/path1/path2 and it's now working.

I tried different ways:

  • { "/path1/path2": "/path0/path1/path2" };
  • { "from": "/path1/path2", "to": "/path0/path1/path2" }
    Nothing works. Path doesn't change. Requests to upstream S3 are going by /path1/path2
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

No branches or pull requests

1 participant