I have a website protected by basic authentication, and I’m using Traefik as my reverse proxy. My issue is that I need to include images from this site in emails, but these images are blocked due to the authentication requirement.
Current Setup:
I am using the following labels in my docker-compose.yml to configure Traefik:
With this configuration, all routes are secured by Traefik's basic authentication. However, I need to make the /images/ path publicly accessible so that images can be viewed without requiring authentication, especially for email clients.
Desired Outcome:
I want to allow public access to images located under /images/ while keeping the rest of the site behind basic authentication.
Question:
How can I configure Traefik to bypass authentication for the /images/ path?
Is it possible to use a middleware to achieve this, or is there a better approach?
Example Labels or other stuff for Desired Configuration:
Could you provide an example of how to adjust my current labels to achieve this?
I appreciate any guidance or examples you can provide. Thank you!
My abcdef-secured service works perfectly, but when I add the abcdef-images service with loadbalancer.server.port=80, the router dont start.
it's the commented section that's giving me trouble
am I wrong?