plone / cookieplone-templates

Plone templates used with cookieplone
MIT License
1 stars 1 forks source link

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

Open Fosten opened 1 week ago

Fosten commented 1 week ago

This used to work in Traefik v2 https://github.com/plone/cookieplone-templates/blob/e0d452f23e1dcfde1cbcb216c9e58360a5f8e6d9/project/%7B%7B%20cookiecutter.__folder_name%20%7D%7D/devops/stacks/%7B%7B%20cookiecutter.hostname%20%7D%7D.yml#L56

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 commented 6 days ago

@Fosten Thanks. The template still uses Traefik 2 (https://github.com/plone/cookieplone-templates/blob/e0d452f23e1dcfde1cbcb216c9e58360a5f8e6d9/project/cookiecutter.json#L50) but we should take a look at updating it.