Can I disable basic authentication for a specified path?

时间:2019-04-16 22:50:36

标签: traefik

I use this Traefik (v1.7) file code to generate a basic auth:

[frontends]

  [frontends.whoami]
    backend = "whoami"

    [frontends.whoami.routes]
      [frontends.whoami.routes.route0]
        rule = "Host:whoami.local"

    [frontends.whoami.auth]
      [frontends.whoami.auth.basic]
        usersFile = ".htpasswd"

Is it possible to deactivate the basic auth for the following path with all his sub paths? http://whoami.local/api
http://whoami.local/api/xxx

0 个答案:

没有答案