1
0
Fork 0

[ttrss] only set logout_url if sso is given

This commit is contained in:
ibizaman 2023-02-05 00:25:28 -08:00
parent 3b09116a76
commit 3861ad9c5a

View file

@ -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";