Merge pull request #323641 from XenGi/fix-freshrss

nixos/freshrss: add ability to use socket path
This commit is contained in:
Jörg Thalheim 2024-07-26 00:20:49 +02:00 committed by GitHub
commit 0fbc43eaea
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -281,7 +281,10 @@ in
${if cfg.database.passFile != null then "--db-password" else null} = ''"$(cat ${cfg.database.passFile})"'';
${if cfg.database.user != null then "--db-user" else null} = ''"${cfg.database.user}"'';
${if cfg.database.tableprefix != null then "--db-prefix" else null} = ''"${cfg.database.tableprefix}"'';
# hostname:port e.g. "localhost:5432"
${if cfg.database.host != null && cfg.database.port != null then "--db-host" else null} = ''"${cfg.database.host}:${toString cfg.database.port}"'';
# socket path e.g. "/run/postgresql"
${if cfg.database.host != null && cfg.database.port == null then "--db-host" else null} = ''"${cfg.database.host}"'';
});
in
{