tarampampam / error-pages

🚧 Pretty server's error pages in the docker image & git repository (for traefik, k8s, nginx and so on)
https://tarampampam.github.io/error-pages/
MIT License
802 stars 78 forks source link

Documented HostRegexp rule is broken for Traefik v3 #286

Closed theriverman closed 1 month ago

theriverman commented 1 month ago

Is there an existing issue for this?

Describe the bug

Hi,

The wiki needs to be updated based on the findings in this discussion: https://github.com/tarampampam/error-pages/discussions/275

Traefik v3 introduces some change to regex handling and the current wiki version of tarampampam/error-pages suggests an invalid configuration option.

Steps to reproduce

Try using the official documentation with Traefik v3

Configuration files

# Wrong
traefik.http.routers.error-pages-router.rule: HostRegexp(`{host:.+}`)

# Good
traefik.http.routers.error-pages-router.rule: HostRegexp(`.+`)

Relevant log output

N/A

Anything else?

N/A

tarampampam commented 1 month ago

The wiki pages were updated, thank you very much! <3