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

Example configuration for Traefik v2 #6

Open
@samip5

Description

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"]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationhelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions