stockholm/makefu/2configs/deployment/rss/rss.euer.krebsco.de.nix

31 lines
738 B
Nix
Raw Normal View History

{ pkgs, lib, config, ... }:
let
fqdn = "rss.euer.krebsco.de";
2022-05-02 20:25:19 +00:00
ratt-path = "/var/lib/ratt/";
in {
2022-05-02 20:25:19 +00:00
systemd.tmpfiles.rules = ["d ${ratt-path} 0750 nginx nginx - -" ];
services.tt-rss = {
enable = true;
virtualHost = fqdn;
selfUrlPath = "https://${fqdn}";
};
2021-04-04 08:23:57 +00:00
state = [ config.services.postgresqlBackup.location ];
services.postgresqlBackup = {
enable = true;
databases = [ config.services.tt-rss.database.name ];
};
systemd.services.postgresqlBackup-tt_rss.serviceConfig.SupplementaryGroups = [ "download" ];
2021-04-04 08:23:57 +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;";
};
};
}