-
i already set up a nginx container that has routers:
to-service:
rule: "Host(`service.com`)"
service: service
middlewares:
- mw-auth
- mw-errors
middlewares:
mw-auth:
forwardAuth:
address: "http://traefik-forward-auth:4181"
authResponseHeaders:
- "X-Forwarded-User"
mw-errors:
errors:
status:
- 401
service: index
query: "/{status}.html"
services:
index:
loadBalancer:
servers:
- url: http://traefik-static:80
service:
loadBalancer:
servers:
- url: http://service:80
how to make traefik to show the custom html page on 401 errors from forward auth? it is still showing the default |
Beta Was this translation helpful? Give feedback.
Answered by
ivanjx
Sep 10, 2024
Replies: 1 comment
-
nvm, i need to order it correctly:
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ivanjx
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
nvm, i need to order it correctly: