Exclude basic aut from path

Hi everyone

Im very new to this , so please be nice :slight_smile:
Im runing traefik 2.9.1 in docker.
i have a bunch of containers that have basicauth labels and now i want my wordpress container to have a path where everyone can access (for picture sharing purposes)

So my docker-compose label look like this for wordpress:

labels:
      - "traefik.enable=true"
      - "traefik.http.routers.wordpress.entrypoints=web"
      - "traefik.http.routers.wordpress.rule=Host(`www.ogke.dk`)"
      - "traefik.http.middlewares.wordpress-auth.basicauth.users=${userpass}" #Password enabler #Password enabler
      - "traefik.http.middlewares.wordpress-https-redirect.redirectscheme.scheme=https"
      - "traefik.http.routers.wordpress.middlewares=wordpress-https-redirect"
      - "traefik.http.routers.wordpress-secure.middlewares=secured@file" #Password enabler
      - "traefik.http.routers.wordpress-secure.middlewares=wordpress-auth" #Password enabler
      - "traefik.http.routers.wordpress-secure.entrypoints=websecure"
      - "traefik.http.routers.wordpress-secure.rule=Host(`www.ogke.dk`)"
      - "traefik.http.routers.wordpress-secure.tls=true"
      - "traefik.http.routers.wordpress-secure.tls.certresolver=http"
      - "traefik.http.routers.wordpress-secure.service=wordpress"
      - "traefik.http.services.wordpress.loadbalancer.server.port=80"
      - "traefik.docker.network=DockerNet"
      - com.centurylinklabs.watchtower.enable=true

The path / pictures everyone should have acces to should be like:
www.ogke.dk/shared/xxx.png

My config.yml:

  middlewares:
    https-redirect:
      redirectScheme:
        scheme: https
    radminlogin:
      basicAuth:
        users:
          - 'username:pw.'

Any input would help - i also have looked in this forum and found a couple things i tried but that didnt help e.g:

"traefik.http.routers.service-admin.rule=Host(domain.example.com) && PathPrefix(/somepath)"

Thanks in advise :slight_smile: