From 3861ad9c5a69a0d4d2d375e658ca6e5bc2f1c8a6 Mon Sep 17 00:00:00 2001 From: ibizaman Date: Sun, 5 Feb 2023 00:25:28 -0800 Subject: [PATCH] [ttrss] only set logout_url if sso is given --- ttrss/default.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ttrss/default.nix b/ttrss/default.nix index 8af77dc..5a1779b 100644 --- a/ttrss/default.nix +++ b/ttrss/default.nix @@ -50,7 +50,7 @@ rec { let domain = utils.getDomain distribution "${serviceName}Config"; in - configPkg { + configPkg ({ name = "ttrss"; serviceName = "${serviceName}Config"; @@ -67,12 +67,14 @@ rec { # TODO: use passwordFile db_password = postgresPasswordLocation; enabled_plugins = [ "auth_remote" "note" ]; - auth_remote_post_logout_url = "https://keycloak.${domain}/realms/${sso.realm}/account"; dependsOn = { inherit db; }; - }; + } + // optionalAttrs (sso != {}) { + auth_remote_post_logout_url = "https://keycloak.${domain}/realms/${sso.realm}/account"; + }); dbupgrade = dbupgradePkg { name = "${serviceName}DBUpgrade";