Skip to content

Replace Path Regex Middleware

Appears in

  • .Values.middlewares.$name.data

regex

Define the regex

Keymiddlewares.$name.data.regex
Typestring
Required
Helm tpl
Default-

Example

middlewares:
middleware-name:
data:
regex: /some-path

replacement

Define the replacement

Keymiddlewares.$name.data.replacement
Typestring
Required
Helm tpl
Default-

Example

middlewares:
middleware-name:
data:
replacement: /some-replacement

Full Examples

middlewares:
middleware-name:
enabled: true
type: replace-path-regex
data:
regex: /some-path
replacement: /some-replacement