Example config:
http:
routers:
auth_api_prod_unsecure:
rule: >
PathPrefix(`/api/auth/token`)
service: auth_api
entryPoints:
- web
auth_api_prod_secure:
rule: >
PathPrefix(`/api/auth/me`)
service: auth_api
entryPoints:
- web
middlewares:
- jwt-superuser
middlewares:
jwt-superuser:
plugin:
traefik_jwt_check:
Access:
- superuser
jwt-any-user:
plugin:
traefik_jwt_check:
Access:
- "*"