From 876021c5cadb39c96020f33b9b73654ccc0f36c9 Mon Sep 17 00:00:00 2001 From: Elliott Partridge Date: Thu, 3 Dec 2020 12:06:41 -0500 Subject: [PATCH] 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 --- .../reverse_proxy_configuration.rst | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/admin_manual/configuration_server/reverse_proxy_configuration.rst b/admin_manual/configuration_server/reverse_proxy_configuration.rst index bed0b02a3..6ed2dd287 100644 --- a/admin_manual/configuration_server/reverse_proxy_configuration.rst +++ b/admin_manual/configuration_server/reverse_proxy_configuration.rst @@ -70,13 +70,23 @@ Thanks to `@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 `_ 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 `_ and `@mrtumnus `_ for traefik examples. Traefik 2 ^^^^^^^^^