JWT Token is a middleware plugin for Traefik which verifies a jwt token and adds the payload as injected header to the request
Start with command
command:- "--experimental.plugins.jwt-token.modulename=github.com/toanz/jwt-token"- "--experimental.plugins.jwt-token.version=v0.1.2"
Activate plugin in your config
apiVersion: traefik.containo.us/v1alpha1kind: Middlewaremeta:spec:plugin:jwt-token:secret: SECRETproxyHeaderName: injectedPayloadauthHeader: AuthorizationheaderPrefix: Bearer
Use as docker-compose label
labels:- "traefik.http.routers.my-service.middlewares=my-jwt-token@file"