services: drop tt-rss completely
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:
Christoph Heiss 2024-08-16 23:21:47 +02:00
parent 2cb5597d77
commit 6333d7d38d
Signed by: c8h4
GPG key ID: 73D5E7FDEE3DE49A
5 changed files with 0 additions and 52 deletions

View file

@ -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.

Binary file not shown.

View file

@ -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;
}];
};
}