Skip to content

Redirect 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-regex

replacement

Define the replacement

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

Example

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

permanent

Define the permanent

Keymiddlewares.$name.data.permanent
Typebool
Required
Helm tpl
Default-

Example

middlewares:
middleware-name:
data:
permanent: true

Full Examples

middlewares:
middleware-name:
enabled: true
type: redirect-regex
data:
regex: some-regex
replacement: some-replacement
permanent: true