Merge pull request #1872 from fengkaijia/patch-2

Update Traefik config for v2
This commit is contained in:
John Molakvoæ
2020-03-09 10:18:37 +01:00
committed by GitHub

View File

@@ -63,8 +63,8 @@ Apache2
Thanks to `@ffried <https://github.com/ffried>`_ for apache2 example.
Traefik
^^^^^^^
Traefik 1
^^^^^^^^^
::
traefik.frontend.redirect.permanent: 'true'
@@ -73,6 +73,16 @@ Traefik
Thanks to `@pauvos <https://github.com/pauvos>`_ for traefik example.
Traefik 2
^^^^^^^^^
::
[http.middlewares]
[http.middlewares.nextcloud-redirectregex.redirectRegex]
permanent = true
regex = "https://(.*)/.well-known/(card|cal)dav"
replacement = "https://${1}/remote.php/dav/"
HAProxy
^^^^^^^
::