Skip to content

clems71/caddy-authelia

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

caddy-authelia

project_badge version_badge license_badge

Caddy 2 plugin for integration with Authelia

This plugin is still a work in progress. Use it in production at your own risk

Example

The following is an example of using the plugin inside a Caddyfile:

whoami.example.com {
    route {
        # Authelia URL : internal URL preferred
        authelia http://authelia:9091 {
            # redirect_url: optional
            # Public auth URL, used when not authenticated on whoami.example.com
            redirect_url authelia.example.com
        }
        request_header Remote-User {http.auth.user.id}
        request_header Remote-Groups {http.auth.user.groups}
        reverse_proxy http://whoami
    }
}

authelia.example.com {
    # Needed for 2FA to work - authelia checks X-Forwarded-Host, and Caddy doesn't fill it by default
    request_header X-Forwarded-Host {http.request.host}
    reverse_proxy http://authelia:9091
}

License

This project is available under the Mozilla Public License 2.0 (MPL), excepted where otherwise explicitly noted.

Copyright

Copyright (c) 2020 Vítor Vasconcellos. All rights reserved.

I am not affiliated with Caddy or Authelia.

Caddy® is a registered trademark of Light Code Labs, LLC.

About

Caddy 2 plugin for integration with Authelia

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 98.3%
  • Dockerfile 1.7%