22
0
mirror of https://github.com/SuperSandro2000/nixos-modules.git synced 2024-06-11 10:44:10 +02:00

portunus: don't use minus in client id

This commit is contained in:
Sandro - 2023-12-10 00:55:54 +01:00
parent d1200a4957
commit 16a0d77839
Signed by: sandro
GPG Key ID: 3AF5A43A3EECC2E5

View File

@ -128,6 +128,7 @@ in
services = let
callbackURL = "https://${cfg.domain}/oauth2/callback";
clientID = "oauth2_proxy"; # - is not allowed in environment variables
in {
dex = {
enable = lib.mkIf cfg.configureOAuth2Proxy true;
@ -137,7 +138,7 @@ in
oauth2_proxy = lib.mkIf cfg.configureOAuth2Proxy {
enable = true;
clientID = "oauth2-proxy";
inherit clientID;
provider = "oidc";
redirectURL = callbackURL;
reverseProxy = true;
@ -151,7 +152,7 @@ in
portunus = {
dex.oidcClients = lib.mkIf cfg.configureOAuth2Proxy [{
inherit callbackURL;
id = "oauth2-proxy";
id = clientID;
}];
seedPath = pkgs.writeText "seed.json" (builtins.toJSON cfg.seedSettings);
};