summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoe Mou <dev@mou.fo>2024-02-15 12:39:20 -0500
committerJoe Mou <dev@mou.fo>2024-02-15 12:40:11 -0500
commit2ae934f1b60161d727c3c673f65dd95f4125b727 (patch)
tree1106a9ea27ec95dd826c7ae2795125889f646783
parentd1dd864df4f2b8acb0082b1198639cc5d7d9a7f9 (diff)
Kludgy fix for oauth2_proxy on boot
-rw-r--r--hostnix/elmo/oidc.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/hostnix/elmo/oidc.nix b/hostnix/elmo/oidc.nix
index b2c34e5..7648e8c 100644
--- a/hostnix/elmo/oidc.nix
+++ b/hostnix/elmo/oidc.nix
@@ -51,4 +51,9 @@
"oidc-email-claim" = "sub";
};
};
+
+ # Kludge to bring up after KeyCloak (otherwise OIDC discovery fails). A simple
+ # ordering dependency isn't enough because keycloak.service is active before
+ # KeyCloak responds to requests.
+ systemd.services.oauth2_proxy.serviceConfig.RestartSec = 5;
}