2020-10-23 19:31:49 +00:00
|
|
|
{ pkgs, lib, config, ... }:
|
2020-03-13 09:42:39 +00:00
|
|
|
let
|
|
|
|
fqdn = "rss.euer.krebsco.de";
|
2022-05-02 20:25:19 +00:00
|
|
|
ratt-path = "/var/lib/ratt/";
|
2020-03-13 09:42:39 +00:00
|
|
|
in {
|
2022-05-02 20:25:19 +00:00
|
|
|
systemd.tmpfiles.rules = ["d ${ratt-path} 0750 nginx nginx - -" ];
|
2020-03-13 09:42:39 +00:00
|
|
|
services.tt-rss = {
|
|
|
|
enable = true;
|
|
|
|
virtualHost = fqdn;
|
|
|
|
selfUrlPath = "https://${fqdn}";
|
|
|
|
};
|
2021-06-05 13:52:06 +00:00
|
|
|
|
2021-04-04 08:23:57 +00:00
|
|
|
state = [ config.services.postgresqlBackup.location ];
|
|
|
|
|
|
|
|
services.postgresqlBackup = {
|
|
|
|
enable = true;
|
|
|
|
databases = [ config.services.tt-rss.database.name ];
|
|
|
|
};
|
2022-06-06 19:17:35 +00:00
|
|
|
systemd.services.postgresqlBackup-tt_rss.serviceConfig.SupplementaryGroups = [ "download" ];
|
2021-04-04 08:23:57 +00:00
|
|
|
|
2020-03-13 09:42:39 +00:00
|
|
|
services.nginx.virtualHosts."${fqdn}" = {
|
|
|
|
enableACME = true;
|
|
|
|
forceSSL = true;
|
2022-05-02 20:25:19 +00:00
|
|
|
locations."/ratt/" = {
|
|
|
|
alias = ratt-path;
|
|
|
|
extraConfig = "autoindex on;";
|
|
|
|
};
|
2020-03-13 09:42:39 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|