time="2023-07-17T08:12:53+01:00" level=error msg="middleware \"compress-with-gzip@docker\" does not exist" entryPointName=websecure routerName=portainer@docker
time="2023-07-17T08:12:53+01:00" level=error msg="middleware \"compress-with-gzip@docker\" does not exist" entryPointName=websecure routerName=gitea@docker
It doesn't know what is the compress-with-gzip middleware. But it recognises the secure-headers middleware.
# As a Docker Label
whoami:
# A container that exposes an API to show its IP address
image: traefik/whoami
labels:
# Create a middleware named `foo-add-prefix`
- "traefik.http.middlewares.foo-add-prefix.addprefix.prefix=/foo"
# Apply the middleware named `foo-add-prefix` to the router named `router1`
- "traefik.http.routers.router1.middlewares=foo-add-prefix@docker"
I also wondered about the hyphen, but it seems ok as it works in the secure-headers and redirect-naked-to-www middlewares.
I assume the issue is something really simple, and stupid, and I just can't see it!
The first logs (above) complain about unknown middleware, but when I enable debug logging, the second logs (above) complain about MIME types. That's weird because:
there's a connection between mime type and compression
it doesn't show the info AND debug logs, only the debug logs (I expected it would show both)
...so maybe the core issue is MIME types.
Should I post this as a repo issue? They get upset if it's invalid. But this one is really weird!