plugin-rewritebody
plugin-rewritebody copied to clipboard
Rewrite body is a middleware plugin for Traefik which rewrites the HTTP response body by replacing a search regex by a replacement string
Does the plugin support declaring multiple replacement operations? If want to: * Replace `^/foo` by /xxx/foo` * Replace `^/bar` by /xxx/bar` (Note: I want all theses operations to occur on...
This may be a duplicate of #13, but I'm not seeing the `panic` logs described in that issue. As with #13 I'm using CLI static config and Docker tag dynamic...
Do you consider the situation when http Transfer-encoding is chunked? For example: regex = "Hello" replace= "Hi" ``` HTTP/1.1 200 OK\r\n Content-Type: text/plain\r\n Transfer-Encoding: chunked\r\n \r\n 1B\r\n Hello world! I...
### Background : Traefik : latest Provider : File and Docker Server's OS: Ubuntu 20.04 **Rewrite configuration :** ``` [http.middlewares] [http.middlewares.rewrite-foo.plugin.rewritebody] lastModified = false [[http.middlewares.rewrite-foo.plugin.rewritebody.rewrites]] regex = 'http://' replacement =...
Sorry, this is not an issue (I think), just and idea to include. I am observing that when a service returns a gzip'ed file (javascript in my case), rewrite body...
Hello, This plugin doesn't work on my installation. Traefik version: v2.3-rc5 Plugin version: v0.2.2 Traefik CLI args: ``` - '--experimental.plugins.plugin-rewritebody.modulename=github.com/containous/plugin-rewritebody' - '--experimental.plugins.plugin-rewritebody.version=v0.2.2' ``` Traefik Middleware: ``` apiVersion: traefik.containo.us/v1alpha1 kind: Middleware...
I'm seeing this on Radarr v3, which uses a websocket for UI status updates. (The style is also not rewritten into the actual page's response body as described in #14,...
Implements #12 . I'm aware that strictly speaking, this feature isn't really necessary (the same effect can be achieved in the regex itself). I still think it would be nice...
Hi I'm trying to rewrite a FreePBX admin page within my Docker container. I've setup a local CNAME for the container, and use the "addprefix" middleware to add "/admin" to...
Maybe I'm just don't get it but is it possible to just add some text at position based on regexp?