diff --git a/global/dynamic.toml b/global/dynamic.toml index a6facfe..349852b 100644 --- a/global/dynamic.toml +++ b/global/dynamic.toml @@ -35,3 +35,14 @@ stsPreload= false stsSeconds= 15768000 +# Dynamic Configuration +[http.routers.my-api] + rule = "Host(`traefik.herrmann.es`) && (PathPrefix(`/api`) || PathPrefix(`/dashboard`))" + service = "api@internal" + middlewares = ["auth"] + +[http.middlewares.auth.basicAuth] + users = [ + "dashboard:$apr1$15pgxrml$JcVZtleLvl2FfXa9fZjdB.", + ] + diff --git a/global/traefik.toml b/global/traefik.toml index 08e2784..b42b0b9 100644 --- a/global/traefik.toml +++ b/global/traefik.toml @@ -10,8 +10,9 @@ address = ":443" [api] - insecure = true - +# insecure = true + dashboard = true + [providers] # Enable Docker configuration backend [providers.docker] @@ -51,4 +52,3 @@ # Required # entryPoint = "web" -