Authelia & Caddy Integration

Enable Authelia on a Caddy Site

handle @log {
    forward_auth localhost:9091 {
        uri /api/verify?rd=https://auth.int.ppn.sh
        copy_headers Remote-User Remote-Groups Remote-Name Remote-Email
    }
    reverse_proxy 10.19.90.20
}

File Based User Database

users:
  usera:
    disabled: false
    displayname: <display-name>
    password: <hashed-password>
    email: <email>
    groups:
      - admins
  userb:
    disabled: false
    displayname: <display-name>
    password: <hashed-password>
    email: <email>
    groups:
      - admins

Hash a Password

# https://www.authelia.com/reference/guides/passwords/#passwords
docker exec -it <container-name> authelia hash-password