# jwt-middleware **Repository Path**: mh3cloud/jwt-middleware ## Basic Information - **Project Name**: jwt-middleware - **Description**: 导入并更新一个 JWT 中间件 - **Primary Language**: Go - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 2 - **Created**: 2022-06-25 - **Last Updated**: 2025-02-11 ## Categories & Tags **Categories**: Uncategorized **Tags**: traefik-plugin ## README # JWT Middleware JWT Middleware is a middleware plugin for [Traefik](https://github.com/containous/traefik) which verifies a jwt token and adds the payload as injected header to the request ## Configuration Start with command ```yaml command: - "--experimental.plugins.jwt-middleware.modulename=gitee.com/mh3cloud/jwt-middleware" - "--experimental.plugins.jwt-middleware.version=v0.2.0" ``` Activate plugin in your config ```yaml http: middlewares: my-jwt-middleware: plugin: jwt-middleware: secret: SECRET redirectURL: youloginhttpspage authHeader: Authorization headerPrefix: Bearer ``` Use as docker-compose label ```yaml labels: - "traefik.http.routers.my-service.middlewares=my-jwt-middleware@file" ```