1
1
Fork 1
mirror of https://github.com/oddlama/nix-config.git synced 2025-10-11 07:10:39 +02:00

feat: use nginx json logs; oauth2-proxy authentication working, groups not yet

This commit is contained in:
oddlama 2023-06-23 00:40:15 +02:00
parent 71dbda6262
commit 1a0378ee5c
No known key found for this signature in database
GPG key ID: 14EFE510775FE39A
4 changed files with 31 additions and 48 deletions

View file

@ -7,7 +7,7 @@
extra.oauth2_proxy = {
enable = true;
cookieDomain = config.repo.secrets.local.personalDomain;
authProxyDomain = "sentinel.${config.repo.secrets.local.personalDomain}";
portalDomain = "oauth2.${config.repo.secrets.local.personalDomain}";
};
age.secrets.oauth2-proxy-secret = {
@ -18,7 +18,7 @@
services.oauth2_proxy = {
provider = "oidc";
scope = "openid";
scope = "openid email";
loginURL = "https://${config.proxiedDomains.kanidm}/ui/oauth2";
redeemURL = "https://${config.proxiedDomains.kanidm}/oauth2/token";
validateURL = "https://${config.proxiedDomains.kanidm}/oauth2/openid/web-sentinel/userinfo";