Add Traefik v1 TOML example

It took me a little while to figure out the correct configuration for Traefik v1 using the traefik.toml for configuration.  So, I figured it would be helpful to document my findings.

Signed-off-by: Elliott Partridge <elliott.partridge@gmail.com>
This commit is contained in:
Elliott Partridge 2020-12-03 12:06:41 -05:00 committed by backportbot[bot]
parent ec36c94f6b
commit f6e3925675

View File

@ -70,13 +70,23 @@ Thanks to `@ffried <https://github.com/ffried>`_ for apache2 example.
Traefik 1
^^^^^^^^^
Using docker tags:
::
traefik.frontend.redirect.permanent: 'true'
traefik.frontend.redirect.regex: https://(.*)/.well-known/(card|cal)dav
traefik.frontend.redirect.replacement: https://$$1/remote.php/dav/
Thanks to `@pauvos <https://github.com/pauvos>`_ for traefik example.
Using traefik.toml:
::
[frontends.frontend1.redirect]
regex = "https://(.*)/.well-known/(card|cal)dav"
replacement = "https://$1/remote.php/dav/
permanent = true
Thanks to `@pauvos <https://github.com/pauvos>`_ and `@mrtumnus <https://github.com/mrtumnus>`_ for traefik examples.
Traefik 2
^^^^^^^^^