We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Does the plugin support declaring multiple replacement operations?
If want to:
^/foo
^/bar
(Note: I want all theses operations to occur on the body, not the first matching one)
I currently have to create/declare 2 middlewares:
[http.routers] [http.routers.my-router] rule = "Host(`localhost`)" middlewares = ["xxx-prefixer1", "xxx-prefixer2"] service = "my-service" [http.middlewares] [http.middlewares.xxx-prefixer1.plugin.rewritebody] [[http.middlewares.xxx-prefixer1.plugin.rewritebody.rewrites]] regex = "foo" replacement = "/xxx/foo" [http.middlewares.xxx-prefixer2.plugin.rewritebody] [[http.middlewares.xxx-prefixer2.plugin.rewritebody.rewrites]] regex = "bar" replacement = "/xxx/bar" [http.services] [http.services.my-service] [http.services.my-service.loadBalancer] [[http.services.my-service.loadBalancer.servers]] url = "http://127.0.0.1"
If I could have something like the following ([http.services] part omitted for brevity):
[http.services]
[http.routers] [http.routers.my-router] rule = "Host(`localhost`)" middlewares = ["xxx-prefixer"] service = "my-service" [http.middlewares] [http.middlewares.xxx-prefixer.plugin.rewritebody] [[http.middlewares.xxx-prefixer.plugin.rewritebody.rewrites.0]] regex = "foo" replacement = "/xxx/foo" [[http.middlewares.xxx-prefixer.plugin.rewritebody.rewrites.1]] regex = "bar" replacement = "/xxx/bar"
It would be easier to maintain.
Thanks
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Does the plugin support declaring multiple replacement operations?
If want to:
^/foo
by /xxx/foo`^/bar
by /xxx/bar`(Note: I want all theses operations to occur on the body, not the first matching one)
I currently have to create/declare 2 middlewares:
If I could have something like the following (
[http.services]
part omitted for brevity):It would be easier to maintain.
Thanks
The text was updated successfully, but these errors were encountered: