https://github.com/greenpau/caddy-security
Ability to utilise caddy-security when caddy is built with
xcaddy build --with github.com/greenpau/caddy-security
the Caddyfile contains the following config at the top :
security {
local identity store localdb {
realm local
path /etc/caddy/auth/local/users.json
}
authentication portal myportal {
enable identity store localdb
cookie domain domain.co.uk
cookie lifetime 86400 # 24 hours in seconds
transform user {
match email user@gmail.com
action add role authp/user
}
}
authorization policy admin_policy {
set auth url https://auth.domain.co.uk
allow roles authp/user
}
}
and then in each subdomain that requires authentication :
authorize with admin_policy
https://github.com/greenpau/caddy-security
Ability to utilise caddy-security when caddy is built with
xcaddy build --with github.com/greenpau/caddy-securitythe Caddyfile contains the following config at the top :
and then in each subdomain that requires authentication :
authorize with admin_policy