feat: add radicale

This commit is contained in:
Leon Schwarzäugl 2025-06-29 15:29:26 +02:00
parent e39f07eac1
commit 6b44dcb023
Signed by: swarsel
GPG key ID: 26A54C31F2A4FD84
7 changed files with 298 additions and 9 deletions

View file

@ -58,8 +58,9 @@ in
extraConfig = lib.optionalString locationSubmodule.config.setOauth2Headers ''
proxy_set_header X-User $user;
proxy_set_header Remote-User $user;
proxy_set_header X-Remote-User $user;
proxy_set_header X-Email $email;
proxy_set_header X-Access-Token $token;
# proxy_set_header X-Access-Token $token;
add_header Set-Cookie $auth_cookie;
'' + lib.optionalString locationSubmodule.config.bypassAuth ''
auth_request off;
@ -79,7 +80,7 @@ in
auth_request_set $user ${config.oauth2.X-User};
auth_request_set $email ${config.oauth2.X-Email};
# if you enabled --pass-access-token, this will pass the token to the backend
auth_request_set $token ${config.oauth2.X-Access-Token};
# auth_request_set $token ${config.oauth2.X-Access-Token};
# if you enabled --cookie-refresh, this is needed for it to work with auth_request
auth_request_set $auth_cookie $upstream_http_set_cookie;
'';