Skip to content
This repository was archived by the owner on Jun 16, 2024. It is now read-only.

Example configuration for Traefik v2 #6

Open
samip5 opened this issue Feb 7, 2021 · 1 comment
Open

Example configuration for Traefik v2 #6

samip5 opened this issue Feb 7, 2021 · 1 comment
Labels
documentation Improvements or additions to documentation help wanted Extra attention is needed

Comments

@samip5
Copy link

samip5 commented Feb 7, 2021

Could you please add a example configuration for it?

What's the proper way to use it in Traefik v2?

The logs show this:

{"level":"error","ts":1612719909.455098,"caller":"src/main.go:42","msg":"User 172.20.0.1 not authenticated","stacktrace":"main.handleAuthentication\n\t/src/main.go:42\ngithub.com/labstack/echo/v4.(*Echo).add.func1\n\t/go/pkg/mod/github.com/labstack/echo/[email protected]/echo.go:522\ngithub.com/labstack/echo/v4.(*Echo).ServeHTTP\n\t/go/pkg/mod/github.com/labstack/echo/[email protected]/echo.go:633\nnet/http.serverHandler.ServeHTTP\n\t/usr/local/go/src/net/http/server.go:2843\nnet/http.(*conn).serve\n\t/usr/local/go/src/net/http/server.go:1925"}
{"level":"error","ts":1612719909.455329,"caller":"src/main.go:43","msg":"unrecognized auth header format","stacktrace":"main.handleAuthentication\n\t/src/main.go:43\ngithub.com/labstack/echo/v4.(*Echo).add.func1\n\t/go/pkg/mod/github.com/labstack/echo/[email protected]/echo.go:522\ngithub.com/labstack/echo/v4.(*Echo).ServeHTTP\n\t/go/pkg/mod/github.com/labstack/echo/[email protected]/echo.go:633\nnet/http.serverHandler.ServeHTTP\n\t/usr/local/go/src/net/http/server.go:2843\nnet/http.(*conn).serve\n\t/usr/local/go/src/net/http/server.go:1925"}
[http.middlewares]
  [http.middlewares.authelia-basic.forwardAuth]
    address = "http://authelia-basic:8081"
    trustForwardHeader = true
    authResponseHeaders = ["Remote-User", "Remote-Groups"]
@ViRb3
Copy link
Owner

ViRb3 commented Feb 8, 2021

I'm afraid that I've never used Traefik, so I can't help with this. If you end up getting it to work, please post the configuration here to help others.

@ViRb3 ViRb3 added documentation Improvements or additions to documentation help wanted Extra attention is needed labels Feb 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
documentation Improvements or additions to documentation help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants