idk
This commit is contained in:
parent
751e584775
commit
aa0d2d3bc3
1 changed files with 5 additions and 7 deletions
|
|
@ -1,9 +1,9 @@
|
||||||
{ config, ... }:
|
{ upkgs, config, ... }:
|
||||||
{
|
{
|
||||||
services.oauth2-proxy = {
|
services.oauth2-proxy = {
|
||||||
enable = true;
|
enable = true;
|
||||||
httpAddress = "http://127.0.0.1:4180";
|
httpAddress = "http://127.0.0.1:4180";
|
||||||
# package = pkgsUnstable.oauth2-proxy;
|
package = upkgs.oauth2-proxy;
|
||||||
provider = "oidc";
|
provider = "oidc";
|
||||||
reverseProxy = true;
|
reverseProxy = true;
|
||||||
redirectURL = "https://sso-proxy.joshuabell.xyz/oauth2/callback";
|
redirectURL = "https://sso-proxy.joshuabell.xyz/oauth2/callback";
|
||||||
|
|
@ -13,9 +13,11 @@
|
||||||
nginx.domain = "sso-proxy.joshuabell.xyz";
|
nginx.domain = "sso-proxy.joshuabell.xyz";
|
||||||
email.domains = [ "*" ];
|
email.domains = [ "*" ];
|
||||||
extraConfig = {
|
extraConfig = {
|
||||||
whitelist-domain = ".joshuabell.xyz";
|
whitelist-domain = "*.joshuabell.xyz";
|
||||||
cookie-domain = ".joshuabell.xyz";
|
cookie-domain = ".joshuabell.xyz";
|
||||||
};
|
};
|
||||||
|
cookie.refresh = "30m";
|
||||||
|
setXauthrequest = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
services.nginx.virtualHosts."sso-proxy.joshuabell.xyz" = {
|
services.nginx.virtualHosts."sso-proxy.joshuabell.xyz" = {
|
||||||
|
|
@ -24,11 +26,7 @@
|
||||||
proxyWebsockets = true;
|
proxyWebsockets = true;
|
||||||
recommendedProxySettings = true;
|
recommendedProxySettings = true;
|
||||||
proxyPass = "http://127.0.0.1:4180";
|
proxyPass = "http://127.0.0.1:4180";
|
||||||
extraConfig = ''
|
|
||||||
proxy_set_header X-Forwarded-Proto https;
|
|
||||||
'';
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue