chore(traefik): regex redirect docs (#3880)
* chore(traefik): regex redirect docs * bump * Update charts/stable/traefik/docs/redirect-regex-middleware.md Signed-off-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com> Signed-off-by: Stavros Kois <47820033+stavros-k@users.noreply.github.com>
This commit is contained in:
@@ -23,7 +23,7 @@ sources:
|
|||||||
- https://github.com/traefik/traefik-helm-chart
|
- https://github.com/traefik/traefik-helm-chart
|
||||||
- https://traefik.io/
|
- https://traefik.io/
|
||||||
type: application
|
type: application
|
||||||
version: 13.3.10
|
version: 13.3.11
|
||||||
annotations:
|
annotations:
|
||||||
truecharts.org/catagories: |
|
truecharts.org/catagories: |
|
||||||
- network
|
- network
|
||||||
|
|||||||
Binary file not shown.
|
After Width: | Height: | Size: 11 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 28 KiB |
@@ -0,0 +1,36 @@
|
|||||||
|
# Redirect Regex
|
||||||
|
|
||||||
|
The Redirect Regex middleware redirects a request using regex matching and replacement.
|
||||||
|
|
||||||
|
In the `Regex` field enter the capturing regex expression
|
||||||
|
In the `Replacement` enter the URL to redirect to.
|
||||||
|
|
||||||
|
## Creating the middleware on traefik
|
||||||
|
|
||||||
|
Edit your existing traefik install (or install fresh if you don't have it installed)
|
||||||
|
|
||||||
|
- Scroll down to `redirectRegex`
|
||||||
|
- Click <kbd>Add</kbd>
|
||||||
|
- Name: `guacamole-redirect` (Any name you want, remember it, you will need it later)
|
||||||
|
- Regex: `^https://remote\.domain\.com/?$`
|
||||||
|
- Replacement: `https://remote.domain.com/guacamole`
|
||||||
|
- Check `Permanent`
|
||||||
|
- Click <kbd>Save</kbd>
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
This will capture `https://remote.domain.com` or `https://remote.domain.com/`
|
||||||
|
and redirect it to `https://remote.domain.com/guacamole`
|
||||||
|
|
||||||
|
## Applying the theme to the app
|
||||||
|
|
||||||
|
Edit your existing _App_, in this example we will use `guacamole-client`.
|
||||||
|
|
||||||
|
- Scroll down to `Traefik MIddlewares` (Remember, you need to have `ingress` enabled)
|
||||||
|
- Click <kbd>Add</kbd>
|
||||||
|
- Name: `guacamole-redirect` (Replace with the name you gave to your middleware on the previous step)
|
||||||
|
- Click <kbd>Save</kbd>
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
You are ready!
|
||||||
@@ -12,7 +12,7 @@ Will NOT work if you access them via `IP:PORT`.
|
|||||||
|
|
||||||
Edit your existing traefik install (or install fresh if you don't have it installed)
|
Edit your existing traefik install (or install fresh if you don't have it installed)
|
||||||
|
|
||||||
- Scroll down to `theme-park`
|
- Scroll down to `theme.park`
|
||||||
- Click <kbd>Add</kbd>
|
- Click <kbd>Add</kbd>
|
||||||
- Name: `guactheme` (Any name you want, remember it, you will need it later)
|
- Name: `guactheme` (Any name you want, remember it, you will need it later)
|
||||||
- App Name: `guacamole` (Replace with the name of the app you want to theme)
|
- App Name: `guacamole` (Replace with the name of the app you want to theme)
|
||||||
@@ -30,7 +30,7 @@ Edit your existing traefik install (or install fresh if you don't have it instal
|
|||||||
|
|
||||||
Edit your existing _App_, in this example we will use `guacamole-client`.
|
Edit your existing _App_, in this example we will use `guacamole-client`.
|
||||||
|
|
||||||
- Scroll down to `Treafik MIddlewares` (Remember, you need to have `ingress` enabled)
|
- Scroll down to `Traefik MIddlewares` (Remember, you need to have `ingress` enabled)
|
||||||
- Click <kbd>Add</kbd>
|
- Click <kbd>Add</kbd>
|
||||||
- Name: `guactheme` (Replace with the name you gave to your middleware on the previous step)
|
- Name: `guactheme` (Replace with the name you gave to your middleware on the previous step)
|
||||||
- Click <kbd>Save</kbd>
|
- Click <kbd>Save</kbd>
|
||||||
|
|||||||
Reference in New Issue
Block a user