Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use simple Regex for https-redirect.rule in Traefik v3 #111

Open
Fosten opened this issue Nov 20, 2024 · 1 comment
Open

Use simple Regex for https-redirect.rule in Traefik v3 #111

Fosten opened this issue Nov 20, 2024 · 1 comment

Comments

@Fosten
Copy link
Contributor

Fosten commented Nov 20, 2024

This used to work in Traefik v2

- traefik.http.routers.generic-https-redirect.rule=HostRegexp(`{host:.*}`)

This is what worked for me in Traefik v3

HostRegexp(`.*`)

As discussed here: ​​https://community.traefik.io/t/hostregexp-v3-and-named-regexp/19802

@davisagli
Copy link
Member

@Fosten Thanks. The template still uses Traefik 2 (

"__devops_traefik_version": "v2.11",
) but we should take a look at updating it.

@Fosten Fosten changed the title Use simple Regex for https-redirect.rule Use simple Regex for https-redirect.rule in Traefik v3 Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants