[ttrss] only set logout_url if sso is given
This commit is contained in:
parent
3b09116a76
commit
3861ad9c5a
1 changed files with 5 additions and 3 deletions
|
@ -50,7 +50,7 @@ rec {
|
||||||
let
|
let
|
||||||
domain = utils.getDomain distribution "${serviceName}Config";
|
domain = utils.getDomain distribution "${serviceName}Config";
|
||||||
in
|
in
|
||||||
configPkg {
|
configPkg ({
|
||||||
name = "ttrss";
|
name = "ttrss";
|
||||||
serviceName = "${serviceName}Config";
|
serviceName = "${serviceName}Config";
|
||||||
|
|
||||||
|
@ -67,12 +67,14 @@ rec {
|
||||||
# TODO: use passwordFile
|
# TODO: use passwordFile
|
||||||
db_password = postgresPasswordLocation;
|
db_password = postgresPasswordLocation;
|
||||||
enabled_plugins = [ "auth_remote" "note" ];
|
enabled_plugins = [ "auth_remote" "note" ];
|
||||||
auth_remote_post_logout_url = "https://keycloak.${domain}/realms/${sso.realm}/account";
|
|
||||||
|
|
||||||
dependsOn = {
|
dependsOn = {
|
||||||
inherit db;
|
inherit db;
|
||||||
};
|
};
|
||||||
};
|
}
|
||||||
|
// optionalAttrs (sso != {}) {
|
||||||
|
auth_remote_post_logout_url = "https://keycloak.${domain}/realms/${sso.realm}/account";
|
||||||
|
});
|
||||||
|
|
||||||
dbupgrade = dbupgradePkg {
|
dbupgrade = dbupgradePkg {
|
||||||
name = "${serviceName}DBUpgrade";
|
name = "${serviceName}DBUpgrade";
|
||||||
|
|
Loading…
Reference in a new issue