forked from mirrors_public/oddlama_nix-config
feat: use nginx json logs; oauth2-proxy authentication working, groups not yet
This commit is contained in:
parent
71dbda6262
commit
1a0378ee5c
4 changed files with 31 additions and 48 deletions
|
@ -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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue