# Redirect with domain replacement apiVersion: traefik.containo.us/v1alpha1 kind: Middleware metadata: # name: hackmd-redirec-hedgedoc-redirectregex name: https-redirect-hedgedoc-codimd spec: redirectRegex: regex: ^https://hackmd.sapian.cloud/(.*) replacement: https://hedgedoc.sapian.cloud/${1} permanent: true