services: drop tt-rss completely
All checks were successful
flake / build (push) Successful in 3m21s
All checks were successful
flake / build (push) Successful in 3m21s
Instead I'll be switching to yarr [0], which is a lot simpler and supports using a sqlite database. [0] https://github.com/nkanaev/yarr Signed-off-by: Christoph Heiss <christoph@c8h4.io>
This commit is contained in:
parent
2cb5597d77
commit
6333d7d38d
|
@ -14,7 +14,6 @@
|
|||
../services/postgresql.nix
|
||||
../services/prometheus.nix
|
||||
../services/restic-client.nix
|
||||
../services/tt-rss.nix
|
||||
../services/vaultwarden.nix
|
||||
../services/vikunja.nix
|
||||
../system/baremetal-server.nix
|
||||
|
|
Binary file not shown.
Binary file not shown.
BIN
secrets/my.nix
BIN
secrets/my.nix
Binary file not shown.
|
@ -1,51 +0,0 @@
|
|||
{ config, lib, my, pkgs, ... }:
|
||||
|
||||
let
|
||||
inherit (my) domain;
|
||||
ttrssCfg = config.services.tt-rss;
|
||||
in {
|
||||
services.tt-rss = {
|
||||
enable = true;
|
||||
virtualHost = "tt-rss.${domain}";
|
||||
selfUrlPath = "https://${ttrssCfg.virtualHost}";
|
||||
simpleUpdateMode = false;
|
||||
singleUserMode = false;
|
||||
registration.enable = false;
|
||||
database = {
|
||||
createLocally = false;
|
||||
type = "pgsql";
|
||||
};
|
||||
};
|
||||
|
||||
services.phpfpm.pools.tt-rss.settings = {
|
||||
"pm.min_spare_servers" = 2;
|
||||
"pm.max_spare_servers" = 4;
|
||||
"pm.start_servers" = 2;
|
||||
};
|
||||
|
||||
# Ensure admin is disabled by setting access level to -2
|
||||
# See also https://srv.tt-rss.org/ttrss-docs/classes/UserHelper.html
|
||||
systemd.services.tt-rss.preStart = lib.mkAfter ''
|
||||
${pkgs.php}/bin/php ${ttrssCfg.root}/www/update.php --user-set-access-level "admin:-2"
|
||||
'';
|
||||
|
||||
services.nginx.virtualHosts."${ttrssCfg.virtualHost}" = {
|
||||
forceSSL = true;
|
||||
useACMEHost = domain;
|
||||
kTLS = true;
|
||||
extraConfig = ''
|
||||
client_max_body_size 64M;
|
||||
'';
|
||||
};
|
||||
|
||||
services.postgresql = {
|
||||
ensureDatabases = [ ttrssCfg.database.name ];
|
||||
ensureUsers = [{
|
||||
name = ttrssCfg.database.user;
|
||||
ensureDBOwnership =
|
||||
assert ttrssCfg.database.name == ttrssCfg.database.user;
|
||||
true;
|
||||
ensureClauses.login = true;
|
||||
}];
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue