services/templates/traefik/dynamic_root_domain_redirect.yaml.gotmpl
Dan Anglin 3076b82055
fix(traefik): update the root domain redirect rule
Update the replacement value for the root domain's redirect rule.
2023-08-01 16:40:45 +01:00

18 lines
465 B
Go Template

---
http:
routers:
root-domain:
entryPoints:
- "https"
rule: "Host(`{{ .RootDomain }}`)"
middlewares:
- "redirect-root-to-freeflow"
service: noop@internal
tls:
certResolver: resolver
middlewares:
redirect-root-to-freeflow:
redirectRegex:
regex: "^(.*)"
replacement: "https://{{ .GoToSocial.Subdomain }}.{{ .RootDomain }}/@{{ .GoToSocial.LandingPageUser }}"
permanent: true