diff --git a/docker-compose/traefik/traefik.yml b/docker-compose/traefik/traefik.yml index 6cb83cc9..15bbc951 100644 --- a/docker-compose/traefik/traefik.yml +++ b/docker-compose/traefik/traefik.yml @@ -39,8 +39,8 @@ api: ping: {} # für healthcheck -#experimental: -# plugins: -# ldapAuth: -# moduleName: "github.com/wiltonsr/ldapAuth" -# version: "v0.1.4" +experimental: + plugins: + ldapAuth: + moduleName: "github.com/wiltonsr/ldapAuth" + version: "v0.1.8" diff --git a/docker-compose/wiki/docker-compose.yml.j2 b/docker-compose/wiki/docker-compose.yml.j2 index fcf3fb21..6e380c60 100644 --- a/docker-compose/wiki/docker-compose.yml.j2 +++ b/docker-compose/wiki/docker-compose.yml.j2 @@ -26,8 +26,14 @@ services: traefik.http.routers.wiki.entrypoints: entry_https traefik.http.services.wiki.loadbalancer.server.port: 80 - traefik.http.routers.wiki.middlewares: nforwardauth + traefik.http.routers.wiki.middlewares: ldap_auth + traefik.http.middlewares.ldap_auth.plugin.ldapAuth.enabled: true + traefik.http.middlewares.ldap_auth.plugin.ldapAuth.logLevel: "DEBUG" + traefik.http.middlewares.ldap_auth.plugin.ldapAuth.url: "ldap://ldap.mgrote.net" + traefik.http.middlewares.ldap_auth.plugin.ldapAuth.port: 3890 + traefik.http.middlewares.ldap_auth.plugin.ldapAuth.baseDN: "dc=mgrote,dc=net" + traefik.http.middlewares.ldap_auth.plugin.ldapAuth.attribute: uid ######## Networks ######## networks: traefik: