summaryrefslogtreecommitdiff
path: root/hostnix/elmo/oidc.nix
diff options
context:
space:
mode:
Diffstat (limited to 'hostnix/elmo/oidc.nix')
-rw-r--r--hostnix/elmo/oidc.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/hostnix/elmo/oidc.nix b/hostnix/elmo/oidc.nix
index 40a0528..ebdd19a 100644
--- a/hostnix/elmo/oidc.nix
+++ b/hostnix/elmo/oidc.nix
@@ -11,6 +11,7 @@
# - PKCE
services.pocket-id = {
enable = true;
+ credentials.ENCRYPTION_KEY = "/var/secrets/pocket-id.key";
settings = {
APP_URL = "https://pi.mou.fo";
TRUST_PROXY = true;
@@ -46,6 +47,7 @@
nginx.domain = "op.mou.fo";
setXauthrequest = true; # let oauth2-proxy nginx module pass X-User/X-Email
reverseProxy = true;
+ trustedProxyIP = [ "127.0.0.1" ];
provider = "oidc";
clientID = "39edd929-8983-4cb6-b1cd-dc08e2e3358f";
oidcIssuerUrl = "https://pi.mou.fo";
@@ -56,6 +58,7 @@
extraConfig = {
code-challenge-method = "S256";
whitelist-domain = ".mou.fo"; # allowed redirects after authentication
+ insecure-oidc-allow-unverified-email = true;
};
};