setup remote auth

This commit is contained in:
2024-12-19 17:25:43 +01:00
parent f7369af8ee
commit 1942bbb50f
5 changed files with 13 additions and 36 deletions

View File

@@ -30,14 +30,11 @@ security {
ui {
links {
"My Identity" "/whoami" icon "las la-user"
"Jellyfin" https://jellyfin.{$SUBDOMAIN}.{$DOMAIN} icon "las la-play"
}
}
transform user {
match realm remote
action add role authp/user
action add iets "Zo iets!" as string
}
transform user {
match origin local
@@ -52,8 +49,7 @@ security {
set user identity seafile_id
inject headers with claims
inject header "X-Seafile-Email" from "user|email"
inject header "X-Test" from "userinfo|seafile_email"
inject header "X-Onzin" from "realm"
inject header "X-Seafile-Email" from "userinfo|seafile_email"
}
}

View File

@@ -1,25 +0,0 @@
reverse_proxy /outpost.goauthentik.io/* http://host:19000
forward_auth http://host:19000 {
uri /outpost.goauthentik.io/auth/caddy?rd={http.request.uri}
copy_headers {
X-Authentik-Username
X-Authentik-Groups
X-Authentik-Email
X-Authentik-Name
X-Authentik-Uid
X-Authentik-Jwt
X-Authentik-Meta-Jwks
X-Authentik-Meta-Outpost
X-Authentik-Meta-Provider
X-Authentik-Meta-App
X-Authentik-Meta-Version
X-Authentik-Other
X-Authentik-Password
X-Authentik-This
X-Authentik-What
Authorization>X-Custom-Authorization
X-Custom-User
X-Custom-Password
X-User-Header
}
}